Hello,
 Just a small thing I came across. I thought it might be useful to get
it out there. I am setting the transparency attribute of an object to
0.6 and behind this object is a wall with a texture on it (therefore, I
should see the textured wall through the object). However, I had to do
the following to get it to work:
1) Instantiating a new TransparencyAttribute and then setting its
transparency didn't work. That is:

  TransparencyAttribute transatt = new TransparencyAttribute();
  transatt.setTransparency(0.6);
  objectappearance.setTransparencyAttribute(transatt);

I guess the transparency mode is NONE by default right? because it works
if I set it to anything but NONE. That is:

  TransparencyAttribute transatt = new TransparencyAttribute(
    TransparencyAttribute.NICEST,0.6);
  objectappearance.setTransparencyAttribute(transatt);

This WORKS, but the object disappears when the textured wall is behind
it (the texture gets rendered over the object).
2) I could only see the object (and through it the wall) if the
transparency mode was set to SCREEN_DOOR. Why is that?

Thanks!

                                                                Mojtaba

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