Hi, Andreas.
But what method I can use to set the EventHandler in the sceneView?
Because in the Viewer I do this: viewer.getEventHandlerList().push_front(new PickHandler(&viewer));
but the SceneView don't have the getEventHandlerList method.

Thanks,
Fernando.


Andreas Goebel escreveu:
Fernando Giovanini schrieb:
Hi all,
I trying to create a GUI using the GLUI library.
To render my scene graph I used the sceneView class. But, is there a way to pick the geode using mouse using sceneView and GLUI? If yes, how? If no, what class I could use to do that?

Hi,

this is definitely possible, see for this older post of mine:

Re: [osg-users] Picking problem

I think that nowadays there is a predefined funktion for projecting mouse into scene-coordinate, but the method in the old post definitely works.

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