Q: EAI likes BLUE ?? 
Author Message
 Q: EAI likes BLUE ??

Hello out there !

I tried to set a texture via EAI's setValue()-method. I could see the
texture changing,
but all I've tried is blue. Dark or light, but always BLUE. I noticed
that blue is the last
component in RGB-format, and that I get the same effect if I use only
byte-values in
the image-Field of an PixelTexture-Node. But the SFImage-Object offers
only a
setValue()-method for byte-arrays, not for integer-arrays.

Anybody an Idea ?

Or documentation for the vrml.external - Classes ?

Thank You !!!

ganic

I am using NT4.0, Communicator 4.03 and 4.04, Cosmoplayer 2.0

*** Code starts here ****

 EventInSFImage setImage=null;
 Node my_texture;
 int components=3;
 int width=5;
 int height=5;

 byte[] pixels = new byte[width*height*components];

 for (int i=0 ; i<width*height*components ; i++) pixels[i] = (byte) 255;

 try {
  my_texture = browser.getNode("PixTex");
  setImage = (EventInSFImage)my_texture.getEventIn("set_image");
 }
 catch(Exception e) {
  System.out.println("ERROR: "+e.toString() );
 }

 if (setImage!=null) setImage.setValue(width, height, components,
pixels);



Mon, 21 Aug 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. blue blue blue people

2. EAI and coding to the EAI

3. Differences between EAI 1 and EAI 2

4. Difference between EAI and EAI 2nd generation?

5. Microsoft likes us :)

6. Looking for someone who likes to write reports

7. Greg likes Oberon (response)

8. Summary of Seek ELIZA-liked Source Codes!!!

9. Sun compiler not liking X in format statements

10. Web interface to Majordomo-likes?

11. Who likes Info files?

12. I liked TCL, i love LUA

 

 
Powered by phpBB® Forum Software