Hi,
I want to implement color picking for my application using rendering to temp 
buffer (back_buffer) every element in different color ( 
http://content.gpwiki.org/index.php/OpenGL_Selection_Using_Unique_Color_IDs ).
Is there any option in osg how to to this ... personally i would prefer 
something like this:

Code:

class ColorPicking : public osgGA::GUIEventHandler
{
handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
{

if (ea.getEventType() == osgGA::GUIEventAdapter::PUSH)
{
// setup buffers

// draw content of aa

// readPixels
}

return false;
}
};



Reason is pretty simple: it's really hard to intersect complex things, things 
cropped with stencil, untesselated polygons with holes ... etc.

Thank you!

Cheers,
Filip[/code]

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to