Hello,
i have problems picking nodes on a terrain (osg 3.1.5 + Vpb on Android)

I create Waypoints on the terrain, and want to pick & drag them to new 
positions. The waypoint node is a Transform with computeLocalToWorldMatrix. The 
model matrix contains rotations, translations and scaling (i use scaling to 
mantain invariant the screen dimension of the waypoint when it is moved, and 
when Zoom changes). I use a PolytopeIntersector for picking.

When i create the Waypoint, it is pickable, and can be moved around. BUT when 
the waypoint is moved to some distance from the original position, it is no 
more pickable! 

Now, if a save the waypoint to file, unload it from the scene (and destroy it), 
and then reload it (that is, create a new node with same attributes of the 
original, and with the same position on the terrain), it is pickable again.

The workaround is to destroy the original waypoint and clone it, after a pick & 
drag operation.

I don't understand if it's my mistake. 
Any advice?

Cheers,
Massimo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=53642#53642





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to