Some things to look for:
1-The step size for the translation
2-keyboard repeat rate is much slower then mouse events, so you have to
compensate. When you turn using the mouse by pulling the mouse over the
screen in an arc, you are generating 800 plus mouse move events, causing the
scene to be rotated on every frame. When you hold down the right key, you
are generating just a few keys per second.
3-AWT slaughters keyboard events when CPU is being fully utilized
4-Jerkiness is caused by too few events per second. When you have 50 frames
a second, but 2 keyboard events per
second, you get a jerky behavior.
Some ideas:
1-Have a thread monitor the system keyboard status and shove keystroke
events into the AWT system.
2-have kepress event start an interpolator which moves you until the key is
released. This might be good
so you can turn as your move.
I will have to take a look j3d keyboard nav class, since the one I am using
has problems also.
Dave Yazel
> ----------
> From: Ben Arbel[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Wednesday, August 23, 2000 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] keyboard navigation behaviors
>
> Hi all
>
> ive just created a behavior class for keyboard navigation and unlike the
> j3d keyboard navigation class my navigation isnt smooth, when for example
> i go forward the navigation goes block by block.. any ideas anyone ?
>
>
> Ben Arbel
> Comsoft Technologies, Inc.
> [EMAIL PROTECTED]
> ICQ: 86004063
>
===========================================================================
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".