Sure,
I do this in my application. Ideally you should be able to use the
alpha channel of a texture to let you do this, though I was not successful
using an SGI RGBA image file on the Win32 platform with JDK 1.3 and J3D
1.2.1 (D3D) or J3D 1.2 (OGL).
Therefore I assign the texture to a polygon and set the transparency
material attribute to not be opaque.
Appearance xAppearance = new Appearance();
Material xMaterial = new Material();
PolygonAttributes xPA = new PolygonAttributes();
TransparencyAttributes xTranspA = new
TransparencyAttributes( TransparencyAttributes.NICEST, 0.20f );
xAppearance.setMaterial( xMaterial );
xAppearance.setPolygonAttributes( xPA );
xAppearance.setTransparencyAttributes( xTranspA );
If anyone knows how to properly utilize an SGI RGBA or other image file
format with an alpha channel on the platform described above I'd very,
very, very much appreciate it.
--Mark
At 05:46 AM 9/9/2000 +0200, you wrote:
>Hello!
>
>Just a brief question: does java3D support semitransparency? If I want to
>show to photos above one another, and see through the frontmost layer, is
>that possible?
>
>Best regards
>Thomas
>
>===========================================================================
>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".
Mark Ferneau 240-462-6262 (cell)
Director of Adv. Technology 801-437-4608 (efax)
Xtivia Technologies, Inc. 732-469-5954 x629 (NJ office)
[EMAIL PROTECTED] 301-279-5703 (home office)
http://www.xtivia.com/ [EMAIL PROTECTED] (wireless email)
===========================================================================
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".