Hi, 

Sorry to resurrect this old topic but I am stuck on the same problem (storing 
the model-view-projection matrix of the last frame in a uniform for each 
drawable of my scene).

I derived the NodeCallback class and cast the nodevisitor passed to its 
operator() to a CullVisitor. The said nodecall is then added to a Geode via the 
addCullCallback() method.

However, the matrices I get seem off.

For instance, when displaying my uniforms via gDebugger, it appears the 
coefficients of the CullVisitor::getModelViewMatrix() are quite different from 
the coefficients of the built-in uniform osg_ModelViewMatrix. For debugging 
purposes, all transforms (including the camera's) are kept unchanged across 
frames.

What could possibly go wrong?
I am using OSG-3.2.1-rc3 on Windows x64 (compiled with Visual Studio 2010).
Any insight would be much appreciated.

Cheers. :)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59837#59837





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

Reply via email to