Hi Fred, ----- "Fred Smith" a écrit :
> Hi, > > In a drawable cull callback, I have found that > State::getModelViewMatrix() and State::getProjectionMatrix() are > different from the matrices returned by Camera::getViewMatrix() and > Camera::getProjectionMatrix(). > > I actually can't perform world to screen space coordinate conversion > using matrices provided by the State, at least not using this kind of > formula: screenSpacePoint = worldSpacePoint * view * proj * > viewPortComputedWindowMatrix. > > The same calculation works with camera matrices. > > Am I missing something? This is a wild guess but I think ModelViewMatrix != ViewMatrix so State::getModelViewMatrix() shouldn't be the same than Camera::getViewMatrix() Regards, -Fred _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

