[ODE] GIMPACT with doubles
Peter Libič
peter.libic at seznam.cz
Sun Oct 29 13:34:27 MST 2006
I tried this, but...
It doesn't compile, because you use still float sometimes.
If I changed these to GREAL, it compiles, but in test_moving_trimesh
trimeshes colides only with ground plane. And after some time there
appears messages about vectors with zero size.
I tried to change all floats in GIMPACT to GREAL, but this didn't
helped, too.
Peter
Francisco Leon wrote:
> Hi Peter.
>
> GIMPACT can support doubles, but you have to make some
> settings:
> In the file 'gim_math.h' on line 47 you must change
> the definition of 'GREAL' to double. That's all!
>
> GIMPACT hasn't been integrated to the whole ODE
> configuration system. So calling "premake --target
> vs2005 --with-doubles" is not enough.
>
>
> --- Peter Libi� <peter.libic at seznam.cz> wrote:
>
>
>>Hello,
>>i tried to build ODE with doubles and gimpact
>>enabled.
>>(premake --target vs2005 --with-doubles
>>--with-gimpact --with-tests)
>>
>>I got following errors:
>>
>>ode\src\collision_trimesh_box.cpp(1330) : error
>>C2664:
>>'gim_trimesh_get_triangle_vertices' : cannot convert
>>parameter 3 from
>>'dVector3' to 'float []'
>> Types pointed to are unrelated; conversion
>>requires
>>reinterpret_cast, C-style cast or function-style
>>cast
>>
>>ode\src\collision_trimesh_plane.cpp(160) : error
>>C2664:
>>'dGeomPlaneGetParams' : cannot convert parameter 2
>>from 'vec4f' to
>>'dReal []'
>> Types pointed to are unrelated; conversion
>>requires
>>reinterpret_cast, C-style cast or function-style
>>cast
>>collision_trimesh_ray.cpp
>>ode\src\collision_trimesh_ray.cpp(150) : error
>>C2664:
>>'gim_trimesh_ray_closest_collision' : cannot convert
>>parameter 2 from
>>'dVector3' to 'float []'
>> Types pointed to are unrelated; conversion
>>requires
>>reinterpret_cast, C-style cast or function-style
>>cast
>>ode\src\collision_trimesh_ray.cpp(154) : error
>>C2664:
>>'gim_trimesh_ray_collision' : cannot convert
>>parameter 2 from 'dVector3'
>>to 'float []'
>> Types pointed to are unrelated; conversion
>>requires
>>reinterpret_cast, C-style cast or function-style
>>cast
>>collision_trimesh_sphere.cpp
>>ode\src\collision_trimesh_sphere.cpp(516) : error
>>C2664:
>>'gim_trimesh_sphere_collision' : cannot convert
>>parameter 2 from 'dReal
>>[4]' to 'float []'
>> Types pointed to are unrelated; conversion
>>requires
>>reinterpret_cast, C-style cast or function-style
>>cast
>>
>>Is there smething I'm doing wrong? Or if I need
>>doubles I just cannot
>>use gimpact?
>>
>>Thanks,
>>
>>Peter
>>_______________________________________________
>>ODE mailing list
>>ODE at q12.org
>>http://q12.org/mailman/listinfo/ode
>>
>
>
>
> "Technocracy Rules with Supremacy"
> Visit http://gimpact.sourceforge.net
>
>
>
> ____________________________________________________________________________________
> Everyone is raving about the all-new Yahoo! Mail
> (http://advision.webevents.yahoo.com/mailbeta/)
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
More information about the ODE
mailing list