I have an applet that I use to test Java3D installations. One test this
applet performs is the use of transparent textures on transparent
objects. I use Sun's Text2D to make an object with alpha channel
texture of text. I then give the Text2D a transparency to make the text
transparent.
Initially, the text looks transparent. A toggle buttons allow you to
toggle the display of the text ( using BranchGroup.detach() ). After
the text is turned back on, it is no longer transparent.
My configuration: GeForce2, Win2k, Detonator3 drivers, Java3D 1.2.1
Beta1 DirectX
When I then switch to using Java3D 1.2.1 Beta1 OpenGL, it works fine...
except the frame rate goes from 400fps to 60fps.
I've attached 3 snapshots:
good_ogl.jpg -- snapshot using OpenGL; looks good after toggling text
good_dx.jpg -- snapshot using DirectX; looks ok at beginning
bad_dx.jpg -- snapshot using DirectX; text is not transparent after
toggle off then back on
<<good_ogl.jpg>> <<bad_dx.jpg>> <<good_dx.jpg>>
J. Lee Dixon
SAIC - Celebration, FL
407-566-1438
[EMAIL PROTECTED] AOL: LeeOrlando
good_ogl.jpg
bad_dx.jpg
good_dx.jpg