"Jenkins, Todd (HOU)" wrote:
>
> Thanks for the info. I tried your code last night and think that it is
> really useful. I am considering ways of improving the motion -- possibly by
> putting the view platform animators in a separate thread.
>
Please try out
http://thenut.eti.pg.gda.pl/~abies/j3d/MythLookBehavior.java
and add it by writing
MythLookBehavior mlb = new
MythLookBehavior(vp.getViewPlatformTransform());
mlb.setSchedulingBounds(new BoundingSphere());
PlatformGeometry pg = new PlatformGeometry();
pg.addChild(mlb);
vp.setPlatformGeometry(pg);
This is third-person myth-like control, but I've implemented in quite
different way - first using behavior instead of listener, second by
smoothing moves and third by dynamically reacting to changing framerate.
I think it is a correct way, because with timer-based updates I got
quite visible jumps when using keyboard (probably some synchronization
issues).
It is possible to set amount of smoothing, I've kept it quite high to be
sure it works ok. Please let me know what you think about this one - if
you will like it I can try to backport changes to FreeLook.
Artur
P.S.
At http://thenut.eti.pg.gda.pl/~abies/j3d/MythLook.java there is an old,
AWT/timer based myth control - you can compare it if you want.
===========================================================================
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".