Hi,
I'm trying to display a scene, but I'm experiencing some problems. I use
the lookAt() and perspective() methods to set up the viewing
transformation. This works properly, but the problems start when I want to
move around the scene.
I want to move the eyepoint through the scene, so I use the MouseRotate(),
MouseTranslate() and MouseZoom() methods to do this. However, these
methods do not move the eyepoint, but they alter the TransformGroup to
which the scene is attached. The eye of the viewer remains at the same
position. This is the case when I attach the MouseRotate(),
MouseTranslate() and MouseZoom() to the scene branch of my Virtual
Universe, but also when I attach it to the view platform branch of my
Virtual Universe. In this last case, the TransformGroup to which the
ViewPlatform node is attached is altered. This effectively moves the scene
again, but not the eye.
Is there any way to move the eye (center of projection) through the scene,
or should I write my own mouse behaviours for this purpose?
The solution I tried was applying the inverse transformation of the scene
branch to the eye point, but besides that I didn't get this to work
properly, this is definitely not wat I want.
Eelco van den Berg.
===========================================================================
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".