Hello,

Does anyone know a solution or workaround for the problem where obscured
transparent objects appear much too bright?

I'm displaying stereo images for viewing with 3D glasses. I use the following
appearance code:

           ap2.setMaterial(new Material(red, black, red, black, 1.0f));
           float transparencyValue = 0.5f;
           TransparencyAttributes t_attr =
                new TransparencyAttributes(
                TransparencyAttributes.BLENDED,
                transparencyValue,
                TransparencyAttributes.BLEND_SRC_ALPHA,
                TransparencyAttributes.BLEND_ONE);
            ap2.setTransparencyAttributes( t_attr );
            ap2.setRenderingAttributes( new RenderingAttributes() );

This works fairly well for simple shapes like I used in
http://www.fungames.org/Pyramid.html
but more complex objects look odd because the parts of the object at the back
are much too bright,
for example, at http://www.java3d.org/redgreengirl the girl's pony tail is much
brighter when viewed from the
front (through her head) than when it is viewed from the side.

Any idea what is going on?

From,

Greg

java3d.org



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to