Hi, Janosch,

Picking works based on traversing the scene, and not necessarily just what's drawn on the screen. You said that you render part of your scene to a texture. Are you sure you're not picking from that same scene?

--"J"


On 05/22/2012 03:47 PM, Janosch Machowinski wrote:
Hi,
sorry I just figured out that I didn't make my problem
clear. I can pick ghost objects. Even if nothing is
drawn at a particular position on my screen, I get
picks to objects that were rendered to the texture.
Greetings
      Janosch

On 22.05.2012 20:48, Janosch Machowinski wrote:
Hello,
I got a problem with picking and render to texture.
I use an osg::Camera to render a part of my graph to
a texture and display it in an HUD. My problem
now is that when I pick, I can also pick objects that
were rendered to the texture.
My question would now be how could I avoid that
any object of the subgraph that is rendered to the
texture gets picked ?
Alternatively it would be ok, if I could pick on the
quad showing the texture and get the object that
was rendered to it.
Greetings
     Janosch
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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


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

Reply via email to