Mark,
Get the view platform TransformGroup with a line like:
TransformGroup vpTrans =
simpleU.getViewingPlatform().getViewPlatformTransform();
Then translate it to move it, and use rotate to turn your view with code
like this:
T3Dtemp.rotY(angle);
T3Dtemp2.rotX(pitch);
T3D.mul(T3Dtemp,T3Dtemp2);
translate.set(x,y,z);
T3D.setTranslation(translate);
vpTrans.setTransform(T3D);
- John Wright
Starfire Research
Mark Beckman wrote:
>
> Hi folks...
>
> I have a simple issue (I think it's simple) that I
> just can't figure out.
>
> I currently have some geometry sitting at (0,0,0). I
> am using the SimpleUniverse (with
> NominalViewingTransform set) to create my View branch.
> From what I can gather, the default view has the
> viewer's head positioned somewhere in positive z
> looking in the direction of negative z. (with pos y up
> and pos x to the right)
>
> Questions:
> (1) How would I move that "viewer's head" to lets say
> somewhere in positive x (y=0,z=0) looking in the
> negative x direction? or vice versa, neg x looking in
> pos x...
>
> (2) What class (group of classes) controls this...???
>
> (3) At first this can be static (hard coded). But
> eventually I will want to control this from the GUI.
> Is this that possible???
>
> I will continue to dig...
> Thanks for your help.
>
> -Mark
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ===========================================================================
> 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".