Hi, I want to use the mouse to create a rectangle on the X-Z plane(Y=0). Like 3DsMax, when I push the mouse, it decide a corner of the rectangle, and then drag the mouse, finally release the mouse.
However, the main problem is how can I know the the world coords on the X-Z plane (Y=0) of point when I click the mouse on the view(I only can know the screen coords X,Y). I have a idea, but I want to have a better one. First, create a infiniteplane on the X-Z plane(Y=0). Second, use "view->computeIntersections(x,y,intersections)" to get the wold coords of the intersection point. This solution is complex because I must create a infiniteplane. Does anyone have a better idea? ... Thank you! Cheers, LvFQ ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46889#46889 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

