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.

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

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

Reply via email to