Hi Java3D Team,
I wonder if you can Completely resolve the conflict of
Z-buffer and Transparency.
Everybody in this mail-list knows the reason cause the
conflict between Z-buffer and transparency. According
to the workaround at "www.Java3D.org/FAQ/", I change
my code, but it still not as good as we need.
Here I attach two snapshot image A (original code) and
B (apply the workaround).
==========================
In image A, we have:
Z-buffer: ON,
equation for transparency: Alpha*SRC +
(1-Alpha)*DST
Problem: the transparent portion of texture is not
correct due to Z-buffer.
==========================
In image B, we have:
Z-buffer: OFF,
equation for transparency: Alpha*SRC + DST
Problem: Color of texture is totally wrong, since we
are using a weird equation.
==========================
I used to use Direct3D 5.0/6.0/7.0, there is a
Billboard sample, which correctly show lots of trees
moving on the terrain. I wonder how come Java3D can
not resolve this conflict? Does the Direct3D sample
use some tricky code to resolve this problem?
I hope that Java3D can provide an elegant method to
show multiple transparent objects, without extra
effort of developer.
I realize that this is very difficult, but it is
really critical for most of 3D applications.
Best Regards
Hongkun Wang.
http://www.igss.net
IGSS
33, Hazelton Avenue, Toronto, ON, CANADA
trees.jpg