Hi, I want to transform a point from world space to screen space with this code: Camera* cam = ... Matrix viewMat = cam->getViewMatrix(); Matrix projMat = cam->getProjectionMatrix(); Viewport* vp = cam->getViewport(); Matrix vpMat = vp->computeWindowMatrix(); Vec3 ls1SS = ls1WSPos * viewMat * projMat * vpMat;
Unfortunately the result vector ls1SS is not correct. Is my approach generelly right or did I miss something? Thank you! Cheers, Martin ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44277#44277 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

