Well perhaps the question is "what to expect to see behind the canvas?"  If you want to see other components either Swing or AWT then I think Joachim already answered that.  If you want to see color other than black then you can set the background color.  I think the answer you are looking for is no, you can't do that you want to do.  OpenGL and DirectX need a retangular raster to draw to, and they fill the whole thing up.  Technically you could render to an offscreenbuffer, mask out the background using the zbuffer and write it into a lightweight component.  Course it would be slow as molasses, and in slow I mean 2-20 seconds a frame.
 
Dave Yazel
www.cosm-game.com
----- Original Message -----
From: zero
Sent: Thursday, May 31, 2001 4:56 AM
Subject: Re: [JAVA3D] transparent Canvas3D

hi again,
 
perhaps i explained my problem not exactly enough.
 
in java3d (and i guess it comes from OpenGL/DirectX) the canvas3D is
rendered black, though there are no objects/background, but i need it
transparent to see whats behind it..

so does anyone knows if it is possible to change the background to be transparent or not ?
- may be not because of the limitation in OpenGL/DirectX ?
 
greetings
Michael Nischt
----- Original Message -----
From: zero
Sent: Wednesday, May 30, 2001 2:55 PM
Subject: [JAVA3D] transparent Canvas3D

hi there,
i wonder, whether it is possible to create a canvas3D which is transparent, for creatinge an application, where a character can walk around in over other components....
 
the special case:
at my university they are working on a project with an animated gif character in a JPanel, and they are thinking of exchanging their character with a 3D one, so i need to know if s.th. like that is possible in Java3D..
 
 
thanks a lot for answering
Michael Nischt

Reply via email to