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.
|
- Re: [JAVA3D] TransparencyAttributes only works with SC... Kevin J. Duling
- Re: [JAVA3D] TransparencyAttributes only works wi... Kevin J. Duling
- Re: [JAVA3D] TransparencyAttributes only works wi... Kasparian, Raffi J.
- Re: [JAVA3D] TransparencyAttributes only works wi... Kevin Rushforth
- Re: [JAVA3D] TransparencyAttributes only works wi... Kasparian, Raffi J.
- Re: [JAVA3D] TransparencyAttributes only works wi... Josh Richmond
- Re: [JAVA3D] TransparencyAttributes only work... Kevin J. Duling