On 1/22/07, Dirk Reiners <[EMAIL PROTECTED]> wrote: > > Hi Aron, > > Aron Bierbaum wrote: > > I am trying to write an OpenSG 2.0 application that requires the use > > of double precision matrices. Is there currently a way to tell OpenSG > > to use OSG::Matrix4d instead of OSG::Matrix4f internally? I did notice > > that the OSG::Transform node core uses a OSG::Matrix4r typedef, should > > I just redefine that before compiling. > > That would be the easiest way. The only disadvantage is that all math will be > double (which is probably not that big an issue), and that there might be > problems with transferring .osb files between versions (Carsten, can you > confirm > that?). > > A more complete solution would be to add double Matrices (Matrixlr?) and > DoubleTransforms, and convert the camera math to use doubles. I'm not totally > sure how much effort that would be.
This solution is interesting, since some of the Transforms could be DoubleTransforms would all of the render traversal code need to change to enable doubles? Can you think of a way to allow the use of doubles when needed, but use floats by default for speed. > Aron Bierbaum wrote: > > I am trying to port ossimPlanet to use OpenSG instead of > > OpenSceneGraph. So I need to have transforms that can store values on > > the global scale. I do realize that OpenGL hardware uses > > float-precision, but I don't know of a better way to address my > > problem. Does anyone have any ideas? > > The double matrices are one part, but I would be more worried about the whole > database/paging part of OSG that OpenSG doesn't have right now. What are > thinking of doing about that? > > Dirk Yep, this is going to be something interesting that we are going to need to do also.:) Thanks, Aron ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
