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. > Short comment: Most (if not all) OpenGL hardware uses float-precision, therefore OpenSG uses floats almost everywhere. Nevertheless, changing the typedef and call glMatrix4dv instead of glMatrix4fv should definitely be possible, and quite simple as well.
Changing it everywhere is likely not trivial (i.e double precision from node::getToWorld, node::getVolume, IntersectAction, etc). Just out of curiosity, why do you need it? Cheers, /Marcus ------------------------------------------------------------------------- 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
