I just ran into this the other day. To see lighting effects on textured
objects, be sure that you have:
Material.setLightingEnable(true);
Supplied normals for the Shape3D geometry
TextureAttributes.setTextureMode(TextureAttributes.MODULATE);
The last is probably the one you are missing. It allows the color of
the underlying polygons to be combined with the color of the texture.
You may need to set the color of your geometry to white.
-Lee
J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[EMAIL PROTECTED]
-----Original Message-----
From: Fran�ois Savard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 12, 2000 9:11 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Lights on texture
Is there a way to apply lights effects on textures as on others
surfaces?
Fran�ois Savard
OPEA-MAT / Civil Engineering Department
Universit� Laval
Qu�bec-Canada
========================================================================
===
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".