If by "screw up the Z-buffer", you mean that it doesn't update the
Z-buffer (but still compares against existing Z values), then this is
expected. See View.setDepthBufferFreezeTransparent() to disable this
feature.
Btw, just as a reminder, depth-sorted transparency will be available
in the 1.3 beta release this fall.
--
Kevin Rushforth
Java 3D Team
Sun Microsystems
[EMAIL PROTECTED]
>Date: Wed, 29 Aug 2001 13:39:01 -0400
>From: "Kasparian, Raffi J." <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] TransparencyAttributes only works with SCREEN_DOOR
>To: [EMAIL PROTECTED]
>
>Just to add to that, SCREEN_DOOR is the only one that works on my computer
>NT4 Pentium III. The other modes seem to screw up the Z-buffer. Even when
>the transparency is set to zero!
>
>Raffi
>
>-----Original Message-----
>From: Kevin J. Duling [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 29, 2001 9:53 AM
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D] TransparencyAttributes only works with SCREEN_DOOR
>
>
>I'm having some trouble with this bit of code:
>
> final float trans = 1.0f - material.getTransparency();
> if (trans > 0.0f)
> {
> TransparencyAttributes transparency = new
>TransparencyAttributes();
> transparency.setTransparency(trans);
>
>transparency.setTransparencyMode(TransparencyAttributes.SCREEN_DOOR); //
>this is the only one that works??
> app.setTransparencyAttributes(transparency);
> }
>
>TransparencyAttributes allows several different settings for the
>transparency mode. But the only one that seems to be working for me is
>SCREEN_DOOR. If I choose NICEST, FASTEST, or BLENDED, the object completely
>disappears.
>
>
>
===========================================================================
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".