Hi Cedric,

Your chages broke the build of osgAnimation on VS 2008. I get this error :

1>Animation.cpp
1>..\..\..\OpenSceneGraph\src\osgAnimation\Animation.cpp(129) : error C2666:
'fmod' : 3 overloads have similar conversions
1>        C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\math.h(561): could be 'long double fmod(long double,long
double)'
1>        C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\math.h(513): or       'float fmod(float,float)'
1>        C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\math.h(120): or       'double fmod(double,double)'
1>        while trying to match the argument list '(double, float)'


Line 129 of Animation.cpp :

t = fmod(t, (float)_duration);

Getting rid of the cast of _duration into float seems to solve the problem.

Mourad


On Thu, Mar 25, 2010 at 7:01 PM, Cedric Pinson
<[email protected]>wrote:

>  Hi,
>
> I did a changes in osgAnimation to use double for time computation, i did
> not change the time function in EaseMotion yet.
> Could you have a try and tell me if it helps ?
>
>
> Cheers,
> Cedric
>
>   --
> Provide OpenGL services around OpenSceneGraph and more
> +33 659 598 614 Cedric Pinson mailto:[email protected] 
> <[email protected]>http://www.plopbyte.net
>
>
>
>   On Tue, 2010-03-23 at 15:12 +0000, Garrett Cope wrote:
>
> Hi,
>
> I noticed that osgAnimation::animation::update uses floating point precision 
> rather than double for it's calculations.
>
> Was there a reason for this choice? I'm experiencing a noticeable loss of 
> precision in my animations at this point.
>
> Thanks for your help,
>
> Jamie
>
> ------------------
> Read this topic online 
> here:http://forum.openscenegraph.org/viewtopic.php?p=26016#26016
>
>
>
>
>
> _______________________________________________
> osg-users mailing 
> [email protected]http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to