Mmmm. Tim, it wasn't actually what i meant. What i did mean was a kind
of setting proportion between physical window in pixels and virtual world in
meters. That is can i somehow set 'zooming' factor of virtual world (how many
meters of virtual world would fit in the pixels dimensions of window)?
Hope now the question got more clear a bit.
vladimir
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
TB> At 10:22 AM 10/11/99 +0400, Vladimir Olenin wrote:
>>DG> Using either mm or m, you'll have to set up your view display your object
>>DG> correctly. The examples are generally set up to display objects in the -1 -> 1
>>DG> range around the origin.
>>
>>I wonder where i can set this range?
TB> The idea is you move the viewing platform to wherever you need it to be.
TB> Here's some sample code, sU is a simpleUniverse:
TB> mVP = sU.getViewingPlatform();
TB> TransformGroup viewTG = mVP.getViewPlatformTransform();
TB> Transform3D viewT = new Transform3D();
TB> viewT.set(new Vector3d(startX, 2.0, startZ));
TB> viewTG.setTransform(viewT);
TB> Of course working out the proper startX, startZ is your problem. You can
TB> also experiment with setting the field-of-view, but I always get bad
TB> results at anything other than the default. -Tim
TB> ===========================================================================
TB> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
TB> of the message "signoff JAVA3D-INTEREST". For general help, send email to
TB> [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".