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.
 
 

Reply via email to