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