I believe this was already briefly discussed in the list, but I was
unable to find a solution mentioned.

I am displaying some trees on a terrain, using GIFs mapped to a
rectangle (classic billboard situation.)  I also have a rectangle
attached to my ViewingPlatform, through which I view the scene ( a
photograph has been mapped to the rectangle).  Part of the program is to
allow the user to toggle the transparency of the rectangle, so that the
user can see the scene through the photo.

This works fine when I initially set up the scene- however, as soon as
the user begins toggling the transparency of the photograph (and I set
the transparencyAttribute of the photograph), the transparent GIFs get
rendered after the photograph, effectively placing them in front of the
photo, when they are at least 300 units away from the ViewingPlatform.
I assume this has something to do with the Z-order of semi-transparent
objects- is there any known workaround?

I am considering replacing the trees mapped onto rectangles with a shape
which has the same outline as the GIF (minus transparent areas), but
would prefer not to have
to add the complexity for that..

Duncan.

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to