What is the exact diiference between postSwap and postRender methods? can it
be the reason of the "black jpg" after the snapshot operation?
thnaks for answering.

Justin Couch wrote:

> hind lwahhabi wrote:
>
> > I was wondering (worrying would be more exact:)) about the ReadRaster
> > method performance.I'm using it to try to take snapshot from a WRL file
> > displayed in the vrml_java3D group browser (vrml97player) and in fact
> > when i open my jpg files i find them black. No data saved.
>
> There are a number of possible points in this that may not be related to
> the read raster method. While I haven't run into this readRaster
> problem, we saw similar symptoms with straight 2D screen captures. I
> assume you are using Sun's JPEG codec to write the images?
>
> We ran into a number of problems relating saved images relative to the
> screen pixel depth. If the screen was set to say 256 colour then that
> was the entire bitmap pixel depth that Java allowed for anything. The
> result of this (we were taking images from the 2D screen) was the black
> picture output you are experiencing. We found that this even sometimes
> occurred on 15/16 bit screens where the source image was also a JPEG,
> but not a GIF (how odd!).
>
> --
> 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/

Reply via email to