On 6/27/07, Dirk Reiners <[EMAIL PROTECTED]> wrote:
>
>         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

A few months ago a spent a few hours trying to recompile OpenSG to use
doubles internal by changing the Vec3r and Matrix4r typedefs. Sadly I
failed because there were too many places that were directly
referencing Vec3f and Matrix4f etc. Also it got to the point where I
was getting compile errors on other types like colors. After talking
to Dirk a while back I also came to the conclusion that it may be
possible to use double precision for geometry and the
RenderTraversal's matrix stack. We will need to solve this problem in
the next few months too. So I would be interested to see what you come
up with.

-Aron

-------------------------------------------------------------------------
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

Reply via email to