[osg-users] Upon Clicking the mouse left button the model should appear there

Robert Osfield robert.osfield at gmail.com
Mon Dec 5 02:28:58 PST 2016

Hi Rambabu,

On 5 December 2016 at 10:15, Rambabu Repaka <ramboram488 at gmail.com> wrote:
> Hi,Model is moving upon clicking mouse button but problem is it is not appearing at clicking place,Constantly it is translating.How can i do to display the model at exact clicking place.

You are doing so many odd things in your code, it's really hard to
tell you where to start.  You've been quite a bit of suggestions on
how to do stuff over the past few weeks yet none of it's been used
here.  I suspect there are things are a fundamental level that you are
missing.  You've got the handling of event wrong, you've got a bizarre
usage of projection node and your own lat/long matrix setup that leave
me wonder what on earth you actually trying to achieve.

There are plenty of OSG examples, find one that is closest to what you
need to do.  The osgpick, osgkeyboardmouse, osgsimulation etc. Spend
time with the examples, spend time looking at the headers of the
classes that these examples use.  Once you understand these example
then have a think about what you are trying to achieve in your own


More information about the osg-users mailing list