Hi Christian,
Christian Bar wrote:
> Hi everyone,
> is there a way to make OpenSG use double precision floating point
> instead of simple precision fp? I need double fp due to the lack of
> precision of simple fp, so I need to make OpenSG store vector, points,
> matrix etc. as double fp also in the node cores. Even if OpenSG
> internally uses double fp, when OpenSG use OpenGL calls, also OpenGL
> will use double fps?
> Do I need to recompile OpenSG with some compilation option? Or the
> solution will simply be to substitute all Pnt3f, Matrix etc. with Pnt3d,
> Matrix4d etc...?
> If I need to recompile OpenSG, what are the steps to be done? I use MSVS
> 7 or 8.
I vaguely remember somebody trying to do that. Aron? AFAIR he tried that
in 2, where it is somewhat simpler as we have an abstract Real type for
fixed support for OpenGL ES anyway. In 1 you can try to cheat and change
the type for Real32 (in OSGBaseTypes.h) to double. I haven't tried it,
but it's easy enough to try, if you can recompile the libs yourself.
The base question in these situations is usually: what do you need it
for? And: OpenGL won't use doubles internally (the chips don't support)
it, so even of the lib does, you might not get the desired result.
Hope it helps
Dirk
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users