Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
osgpick can not pick?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kittu nundd  
View profile  
 More options Aug 22 2012, 6:54 am
From: "kittu nundd" <superyc...@hotmail.com>
Date: Wed, 22 Aug 2012 12:54:50 +0200
Local: Wed, Aug 22 2012 6:54 am
Subject: [osg-users] osgpick can not pick?
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-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »