Rogers, Shane schrieb:
Hello all,

I am trying to establish Picking for my program, we are currently using
osg 0.9.9.  I know this is an older version, but I was wondering if
anyone had any suggestions.

I was looking at the examples and it seems that all of the Examples were
using osgGA and osgProducer.  We are currently using OpenThreads, osg,
osgDB, osgUtil and Producer. We do not use osgProducer and osgGA.
I noticed that in these examples they establish a viewer object from
osgProducer::viewer and use the getEventsHandlerList from that object
and pass it the picking object so then picking is set up for this
particular example.
I was wondering is there anyway else to establish picking without using
osgProducer and osgGA?  Is there something like the getEventsHandlerList
handler somewhere else?
We are using the Producer::Camera to set the SceneHandler and realize
the render surface.  We are using the osgSimpleSceneHandler to set up
our scene handler.

Any ideas how I can get picking in here without using osgGA and
osgProducer?

Thanks,

Shane Rogers
Hi,

search the list for picking and my name. There is an older thread where (at the end of the thread) I post picking-code that works just with the intersect-visitor and the projection and view-matrices. It definitely works with osg 0.9x, as this was the version I initially wrote it for. Some of the code is from this list, it´s not all written by me. You have to get your matrices from your Producer::Camera, not from the sceneView, as I do. Be aware that Producer can do picking and intersecting, too, but I don´t know much about this. Look into the producer docs (or rather the headers ...).


Regards,

Andreas
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/




_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to