Hi Jung,
Jung Lee wrote:
> Thank you always, Pablo.
> I am trying to drag and drop objects in a scene with mouse movements.
> Given mouse coordinates (x,y), a picked object would be translated
> into mapped world coordinates from the mouse coordinates. For example,
> I want kind of gluunproject function in OpenGL.
> If every screen pixels couldn't map into world coordinates, is
> possible to map the nearest? Z axis is constant in my application, and
> not changed. for example, i need to simply translate mouse(x,y) ->
> world(x',y',0). is it possible?
Well, if you want to drag objects around you need to know how far away they are
to move them accordingly.
Most -f the code for that is actually in the TrackballNavigator, just used the
inverse way (it moves the camera so that the object stays under the mouse
cursor
when you click-n-drag with the middle mouse button). You might want to look at
that for some inspiration.
Hope it helps
Dirk
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users