I've verified that the value of trans is between 0.0 and 1.0.  In fact, it's
0.33.  I've tested this on two different cards, a GeForce2 and an ATI Rage
128.

----- Original Message -----
From: "Josh Richmond" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 3:08 PM
Subject: Re: [JAVA3D] TransparencyAttributes only works with SCREEN_DOOR


I'm not sure why this is not working for you. Transparency works in every
mode for me, on a variety of Windows Nt/2000 and Linux machines using both
the OpenGL and DirectX APIs. (Well, DirectX in W2K only)

Did you try printing 'trans' out to make sure it's not too large? Try fixing
the value..

Or perhaps your video card doesn't support Alpha-blending through OpenGL. Is
that possible??

Just guessing,
Josh

>>> [EMAIL PROTECTED] 08/29/01 01:01pm >>>
I should point out that this is happening with the OpenGL version of the
Java3D RT.  The DirectX version is working.

----- Original Message -----
From: Kevin J. Duling
To: Discussion list for Java 3D API
Sent: Wednesday, August 29, 2001 8:52 AM
Subject: 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".

===========================================================================
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