HI Andrew,

On 26 June 2012 22:29, Andrew Cunningham <[email protected]> wrote:
> I am also confronting the issue of needing to "pick" the individual objects 
> rendered as "draw instances". Any best practices that can be recommended for 
> use in the OSG world...

This is one of the challenges with using vertex and geometry shaders -
you can place or create objects so they don't have a direct counter
part as geometric representation in main memory.  Unfortunately there
isn't any easy solution, none of the OSG's built intersection knows
about the special things you are doing with the geometry and there
isn't a way of them knowing what to do with shaders so the only way is
to come up with a custom intersection route, or, use OpenGL to do
picking.

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

Reply via email to