>> Has anyone found a solution to the
>> "setWindowResizePolicy(View.VIRTUAL_WORLD)" problem
>> (i.e., it doesn't work - objects resize as window is enlarged,
>> rather than staying the same size...)??

here is a workaround: you can replace the projection transformation with one
that takes into account the current window size.

This can be a bit cumbersome, i also haven't done it myself and cannot
present a formula, but it should work. The trick is to choose a zoom factor
depending on the window size - the larger the window, the smaller the zoom
factor.

To put it another way, some j3d methods for setting up projection
transformations allow you to specify a virtual window size. By setting the
virtual window size to your actual window size, you should get the same
scale regardless of the window dimension.

You can then overload the setSize() method of the canvas (still calling
super.setSize) to adjust the projection transformation every time the user
resizes the window.

Search archives.sun.com for more detail, i think we had this one already.

cheers,

--julian

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