Thank you very much, I got it fixed, it was a stupid mistake, I didn't add the light to the same transformgroup, I added it to root branchgroup instead..so now is fine. I tried your suggestion, and I didn't see any difference without adding the light, if I add the light, it shows the difference...I learned something from you, thanks a lot.
Andy Leung ----- Original Message ----- From: "John Wright" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 4:37 PM Subject: Re: [JAVA3D] Light and Texture > Andy, try: > TextureAttributes ta = new TextureAttributes(); > ta.setTextureMode(TextureAttributes.MODULATE); > appearance.setTextureAttributes(ta); > > - John Wright > Starfire Research > > Andy wrote: > > > > Hi, I just created a virtual universe and a box. I rotated the box a bit so > > I can view 3 faces of it. I applied the texture and lights but only the > > texture was working, I didn't see the lights are working. I applied the > > AmbientLight and PointLight. When I turned off texture, it was working but > > if I turned it on, only texture was shown. What would the problem be? Any > > hints would be appreciated, many thanks. > > > > Andy > > > > =========================================================================== > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff JAVA3D-INTEREST". For general help, send email to > > [EMAIL PROTECTED] and include in the body of the message "help". > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
