Hi Cheng Huang,

You need to do something like this -

canvas.getScreen3D().setSize(new Dimension(1280, 1024));
canvas.getScreen3D().setPhysicalScreenWidth(0.36124);
canvas.getScreen3D().setPhysicalScreenHeight(0.28899555);

I used the code here as a starting point -

http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0002&L=java3d-interest&P=R25211

Hope this helps,

Hugh


>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
>Subject: [JAVA3D] reset screen
>To: [EMAIL PROTECTED]
>X-Razor-id: 8bd848e7bd600b9b566745fd5eaf4e0fa0abd05e
>
>hello.everybody.
>
>I get a error about Cavas3D screen's size is not right when I am rendering a
>offScreen.
>can I reset the Canvas3D screen's size??
>
>thanks for help!
>
>
>###########################################
>Cheng Huang
>E-Mail : [EMAIL PROTECTED]
>###########################################
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to