Re: [osg-users] Example code for mouse to world coordinates

2010-04-03 Thread Martin Beckett
In general you need to pick a point - because a 2d mouse point is a line in 3d. But if you are showing a view form a known direction of a relatively flat object (such as a plan view of the ground) you can go direct from mouse to world. Code: bool pick(const osgGA::GUIEventAdapter

[osg-users] Example code for mouse to world coordinates

2010-04-02 Thread David Cofer
I am trying to convert mouse coordinates to world coordinates. Does anyone have a suggestion of an example app or somewhere in the OSG code to at look to figure out how to do this? Thanks -- Read this topic online here:

Re: [osg-users] Example code for mouse to world coordinates

2010-04-02 Thread Jonathan Greig
dcofer wrote: I am trying to convert mouse coordinates to world coordinates. Does anyone have a suggestion of an example app or somewhere in the OSG code to at look to figure out how to do this? Thanks Take a look at the osgpick example. -Jonathan -- Read this topic