Hi all, I have a question about the conversion of object coordinates to viewport coordinates in opensg.
In my application, I have a 3D pointer object (a cone), which I want to use for a picking routine. To know the position of this object in worldspace, I'm doing this : DynamicVolume vol; m_pointerNode->getWorldVolume(vol); osg::Pnt3f center; vol.getCenter(center); Now I want to construct a viewray from the X and Y position of the pointer (with the simplescene manager's calcViewRay() method) to do some picking. Is there a method to convert the x and y coordinates of the of the center position to the x and y coordinates needed for the calcViewRay method? Thanks in advance, Jan ------------------------------------------------------------------------- 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
