[ODE] interpolating between physics frames to get the actual positions in the render time
juhani honkala
juhnu at all-m.com
Wed Apr 16 17:37:01 2003
This is a multi-part message in MIME format.
------=_NextPart_000_007F_01C304C5.2A090B10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Using the fixed time step physics results in slight time difference
between the actual
render time and physic time which can cause choppiness to the movements
of objects...the effect would be more noticeable with kind of large
timesteps tho.=20
=20
Instead of using just the last physics step position/orientation one
could interpolate
between the last two physics steps and get the position/orientation
exactly at the=20
rendering time..=20
=20
=20
Therefore my question is..=20
=20
Is there any way to do that with ODE?=20
=20
It's certainly possible to do that outside ODE but it's kinda
hassle..and what do you think about lerping between the frames in
general..=20
=20
=20
=20
cheers,=20
=20
=20
=20
juhnu
=20
=20
=20
=20
=20
ps. oh my first posting to this list ever.. have to buy a cake or
something
=20
=20
=20
=20
------=_NextPart_000_007F_01C304C5.2A090B10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Using the fixed time step physics =
results in slight=20
time difference between the actual</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>render time and physic time which can =
cause=20
choppiness to the movements of objects...the effect would be more =
noticeable=20
with kind of large timesteps tho. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Instead of using just the last physics =
step=20
position/orientation one could interpolate</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>between the last two physics steps and =
get=20
the position/orientation exactly at the </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>rendering time.. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Therefore my question is.. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there any way to do that with ODE? =
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I</FONT><FONT face=3DArial =
size=3D2>t's certainly=20
possible to do that outside </FONT><FONT face=3DArial size=3D2>ODE but =
it's kinda=20
hassle..and what do you think about lerping between the frames in =
general..=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>cheers, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>juhnu</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ps. oh my first posting to this =
list ever..=20
have to buy a cake or something</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_007F_01C304C5.2A090B10--