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
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
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
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