J3DTimer in any case is operating system dependent and in WinXP has mistake
~7 ms.

Vladimir A. Vernikovski
Programmer
-------------------------------------------
JPROOF Technologies Ltd.
----- Original Message -----
From: "Alessandro Borges" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 3:14 PM
Subject: Re: [JAVA3D] Animation Tips?


> I am using a animation behavior which works this way
>
> take initial time value from J3DTimer before start the animation
> at each elapsed frame
> {
>    calculate the delta time (current - initial time);
>    do the animation with that delta time value
>   (optionally you can multiply delta time by a factor for slowmotion or
fast
> motion porpuse)
> }
>
>
> This allows very smooth  animation under Win98.
> You can also extend Alpha class, and force it to use J3DTimer instead
> System.currentTimeMillis.
> I did it for this demo :
> http://www.cpm2002.hpg.ig.com.br/alessandro/gearbox/AlphaGTDemo.html
> source code available there.
>
> Another and more complex solution is create your own Timer class based on
> J3DTimer, as well a Alpha extension to use it. So you can reset, pause, go
> fast or slower as you wish.
>
> Alessandro
>
>
>
>
> ----- Original Message -----
> From: "Vladimir Vernikovski" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 13, 2003 6:05 AM
> Subject: Re: [JAVA3D] Animation Tips?
>
>
> > 1. Unfortunately, I havn't right timemer for the still... And we have in
> > WinXP timer with mistake 5 ms and this not good for animation :(
> > 2. I'm using J3D Behavior framework, mixed mode but it needs for some
> > modification.
> >
> > If you are interested for results (best run in NVidia Geforce and later
> > cards):
> > http://homepages.nsys.by:8101/~yvgtest/NewHouse/WebStart/
> >
> > Vladimir A. Vernikovski
> > Programmer
> > -------------------------------------------
> > JPROOF Technologies Ltd.
> > ----- Original Message -----
> > From: "Smith, David" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 12, 2003 7:53 PM
> > Subject: [JAVA3D] Animation Tips?
> >
> >
> > > Does anyone have any tips or heads-up on developing
> > > your own animation system in Java3D?  A couple requirements
> > > are the ability to animate at all levels, object, geometric,
> > > and geometry attributes.  Also, I want to be able to
> > > control the playback rate/frame rate.
> > >
> > > I have browsed the archives and some of the issues
> > > seem to be :
> > >
> > > 1)  Finding the right timer.  System.currentTimeMillis is
> > > OS dependent.  Others created JNI to the OS(Windows for example
> > > to call QueryPerformanceTimer()).  Some were saying look at
> > > JMF, Timer.   So is there a final verdict on what is the
> > > best cross-platform timer to use?
> > >
> > > 2)  To use or not to use the J3D Behavior framework, or just
> > > do it yourself in Mixed/Immediate mode rendering.
> > >
> > > 3)  <Insert your concerns & questions here>
> > >
> > > Thanks,
> > > -DaveS
> > >
> > > 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".
>
>
===========================================================================
> 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".

Reply via email to