Hey all,

First off, this is NOT another "can we change all vec3 to vec3d" thread. My question is more specific. :)

In osg::CullStack, the EyePointStack is a Vec3 stack, therefore a Vec3f stack. However, the stack itself is built up using elements from a osg::Matrix, which could be a Matrixd (if so chosen from OSG_USE_FLOAT_MATRIX). For users like me who need a Vec3d eye point, the EyePointStack becomes useless because it only stores Vec3f values. So we end up having to do redundant work (although admittedly not difficult work) to recover the eye point from the CullStack's modelview matrix.

So would it be worth it to implement the CullStack::EyePointStack typedef as Vec3d/Vec3f depending on the value of the OSG_USE_FLOAT_MATRIX compile variable?

Thanks,
Ravi
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to