Flavius Alecu wrote:
Another problem is how can I use the mouse to rotate??

Use java.awt.Robot, resetting cursor to center of screen each time (and using invisible cursor).

Please check out
http://swjscmail1.java.sun.com/cgi-bin/wa?A1=ind0104&L=java3d-interest#134

I have written a class for this back then. You can grab classes at
http://nwn-j3d.sourceforge.net/misc/FreeLook.java
and
http://nwn-j3d.sourceforge.net/misc/MythLookBehavior.java

FreeLook is what you are looking for. MythLook is quite different (it is
RTS-like point of view), but you can check it out how to implement
movement smoothing/inertia.

From my old post (of you want to use FreeLook)
----------------------
You use it like this

FreeLook fl = new FreeLook(pCanvas,vp.getViewPlatformTransform());
pCanvas.addMouseMotionListener(fl);
pCanvas.addMouseListener(fl);
pCanvas.addKeyListener(fl);

where pCanvas is Canvas3D and vp is ViewingPlatform.
----------------------

Artur

===========================================================================
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".

Reply via email to