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
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:
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
3 matches
Mail list logo