I run the osgpick example in windows mode by adding th code 
Code:
viewer.setUpViewInWindow(0, 0, 800, 600);

, 
but osgpick example cannt pick the model when the osgpick example  window's 
size is resized. I find that the error in the code


Code:
bool View::computeIntersections(float x,float y, 
osgUtil::LineSegmentIntersector::Intersections& intersections, 
osg::Node::NodeMask traversalMask)
{
    if (!_camera.valid()) return false;

    float local_x, local_y = 0.0;
    const osg::Camera* camera = getCameraContainingPosition(x, y, local_x, 
local_y);
    if (!camera) camera = _camera.get();
...........




the function getCameraContainingPosition() return the local_x, local_y is wrong 
position.

please help me , thanks!

My osg source revision is 13111.

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to