hind lwahhabi wrote:
> What is the exact diiference between postSwap and postRender methods? can it
> be the reason of the "black jpg" after the snapshot operation?
postRender is called just after the j3d runtime has finished rendering
all of the scene graph (including behaviour execution etc). This is
typically rendered to an off screen bitmap (video memory on your video
card. ie a hardware only operation) then blatted to the screen with
postSwap. This is called after the off screen image has been blitted to
the visible display. At this point, j3d has finished all operations for
this frame and is ready to start the next.
If you are calling readRaster in postRender, then it could well be the
source of your black images as the runtime environment is probably just
blanking the screen out for blitting the next image (although this can
lead to flicker because of the extra repaint)
--
Justin Couch Author, Java Hacker
Snr Software Engineer [EMAIL PROTECTED]
ADI Ltd, Systems Group http://www.vlc.com.au/~justin/
Java3D FAQ: http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
Turn it or move it, and a new set of arrangements appears... is it
a single light or many lights, lights that one must know how to
distinguish, recognise and appreciate? Is it one light with many
frames or one frame for many lights?" -Subcomandante Marcos
-------------------------------------------------------------------
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/