Hi, why not just add a second TransfomGroup:
simU = new SimpleUniverse(canvas,2);
Transform3D temp = new Transform3D();
Transform3D temp2 = new Transform3D();
Transform3D temp3 = new Transform3D();
temp2.set(new Vector3f(0.0f,0.5f,0.0f));
temp3.rotX(-Math.PI/4.5);
temp.set(new Vector3f(0.0f,10.5f,7.0f));
temp.mul(temp3);
viewTransform =
simU.getViewingPlatform().getMultiTransformGroup().getTransformGroup(0);
viewTransform = simU.getViewingPlatform().getViewPlatformTransform();
viewTransform2 =
simU.getViewingPlatform().getMultiTransformGroup().getTransformGroup(1);
viewTransform.setTransform(temp2);
viewTransform2.setTransform(temp);
now you can use viewTransform for the KeyNavigatorBehavior and you would
look downwards, from 10.5 meters above, and from 7.0 meters behind the
TransfomGroup that the Behavior moves.
bye MB
At 13:04 28.09.2001 +0200, you wrote:
>Hello!
>
>I'm trying to set an other startpoint for my keyNavigatorBehavior. I
>can't figure out where the default point is set when I add this.
>
>I would like to set the point for the "camera" a bit higher up on the Y
>-axies, so I can se a landscape from above.
>
>State for the camera now (Camera I__I, Landscape
>-----------------------------------------):
>I__I ------------------------------------------------------
>
>Desired state for camera:
>I__I
> ----------------------------------------------------------
>
>This is my code so far:
>
>TransformGroup transformGroup1 =
>simpleUniverse.getViewingPlatform().getViewPlatformTransform();
>KeyNavigatorBehavior keyNavigatorBehavior = new
>KeyNavigatorBehavior(transformGroup1);
>keyNavigatorBehavior.setSchedulingBounds(new BoundingSphere(new
>Point3d(0.0f, 0.0f, 0.0f),100.0));
>
>branchGroup.addChild(keyNavigatorBehavior);
>
>Would be great with some code that tell me how to do this!
>
>Best Regards
>
>Fredrik
>
>
>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".