The center of the ViewPlatform's activation region is at (0,0,0) in
ViewPlatform coordinates, which is the local coordinate system of the
ViewPlatform node.  If you need to know what (0,0,0) in ViewPlatform
coordinates is in virtual world coordinates, you can transform (0,0,0)
by the localToVworld transform of the ViewPlatform node.  If what you
are trying to do is define a behavior that is always a fixed distance
relative to the view platform (e.g., a behavior that modifies the view
platform might want to be defined this way) then you should put the
behavior under the view platform transform.

-- 
Kevin Rushforth
Java 3D Team
Sun Microsystems

[EMAIL PROTECTED]


>Date: Sun, 14 Feb 1999 13:39:57 -0600
>From: Christopher Currie <[EMAIL PROTECTED]>
>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Subject: [java3d] Activation and behavior regions -- what moves with viewpoint?
>
>Dear all,
>
>      I have a behavior object that modifies the TransformGroup node of
>the ViewPlatform such that as I move away from the origin of the virtual
>
>world, an object (near, i.e., 0.5, 0.5, -.05) the origin will get
>smaller and smaller.  However, at some point, the object will stop
>receding.  This is because the ViewPlatform's "activation region" and
>the Behavior's "scheduling region" no longer intersect.
>
>    QUESTIONS: Where IS the ViewPlatform's  activation region?
>Specifically, it has a center, but where in the virtual world is the
>location of this center?  If I change my viewpoint (e.g., pull back from
>
>the object), which is moving with "me," the activation region or
>Behavior's scheduling region.  Thanks.
>
> - Cheers,
>       Christopher
>
>--
> Christopher Currie       | EMAIL: [EMAIL PROTECTED]
> http://kahuna.psych.uiuc.edu/~ccurrie/homePage.html
> |
>         Laboratory for Computational Astrophysics (LCA)
>  at the NCSA and Beckman Institute at the University of Illinois
>    INTERNET INTERFACE TO NUMERICALY SIMULATED GALAXY CLUSTERS:
>                 http://sca.ncsa.uiuc.edu/
>                           and
>   Imaging Systems Laboratory INTERACTIVE 3-D FOREST ENVIRONMENT:
>         http://imlab9.landarch.uiuc.edu/smartforest/
>----
>
>
>
>=====================================================================
>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to