Bill,

Yep, I just checked, and:

texAtt.setTextureMode(TextureAttributes.MODULATE );

Seems to do the trick.

Hope it works out.

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 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/

Reply via email to