[JAVA3D] Capturing jpeg.

2004-08-13 Thread Claudio Mazzuco
I've tried to use the code on the FAQ of j3d.org, to capture a frame from a Canvas3D and save it in jpg format, but it doesn't work. I obtain only jpegs whit garbage inside, and it's strange because the canvas3d is well rendered. Where i'm mistaking? This is the main declaration: public class MainG

Re: [JAVA3D] Capturing jpeg.

2004-08-13 Thread Alessandro Borges
hi I am not sure if it is the error, but I advice you to replace the absolute heigh and width values - 600 and 800 - by getHeigh() and getWidth() in your sub classed Canvas3D.   Alessandro     Claudio Mazzuco <[EMAIL PROTECTED]> wrote: I've tried to use the code on the FAQ of j3d.org, to capture a

Re: [JAVA3D] Capturing jpeg.

2004-08-13 Thread Claudio Mazzuco
Thanks, i'll try, but is the Canvas3D a class not depending from the size of the Panel, Frame etc.? When i create a Canvas3D i don't specify any width or height. Alessandro Borges wrote: hi I am not sure if it is the error, but I advice you to replace the absolute heigh and width values - 600 and 8

Re: [JAVA3D] Capturing jpeg.

2004-08-13 Thread Alessandro Borges
Yes, but your canvas3D has its own  height and  width when it is finnaly ready to show your 3D stuff. And you captured screen will show just what is into your canvas3D, not less not more.   Alessandro Claudio Mazzuco <[EMAIL PROTECTED]> wrote: Thanks, i'll try, but is the Canvas3D a class not depen