Andy,
The OpenGL GL_MODULATE texture mapping mode allows textures to follow the
object colour:
glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
Lighting effects on the object should then also be visible.
Sincerely,
Daniel Selman.
Tornado Labs Ltd.
Email: [EMAIL PROTECTED]
Web: http://www.tornadolabs.com
Phone: +44 (0131) 343 2513
Fax: +44 07070 800 483
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andrew
Phelps
Sent: 10 May 1999 15:58
To: Bill Hibbard
Cc: Java Interest
Subject: RE: [java3d] how to use lighting and transparency with texture
mapping in Java3D
Anyone correct me if I'm wrong... but I don't think OpenGL supports shaded
texture mapping. You will have to settle for shading OR texturing.
Regards,
Andy
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Bill Hibbard
Sent: 10 May 1999 15:53
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [java3d] how to use lighting and transparency with texture mapping
in Java3D
I cannot get lighting to work with on texture mapped GeometryArrays (such as
TriangleStripArrays)
in Java3D. The same arrays are lit when they do not include textures. I am
using
TextureAttributes.setTextureMode(TextureAttributes.REPLACE);
(the other modes don't seem to work for me). I see my textures, but the
shading is flat.
Can anyone suggest what I'm doing wrong, or point to an example that has lit
textures?
Also, I cannot seem to make transparency in my texture maps, even with:
new BufferedImage(texture_width, texture_height,
BufferedImage.TYPE_INT_ARGB);
Thanks for any advice,
Bill Hibbard
[EMAIL PROTECTED]
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/