Hi simon,

i got it working, i added the osgGA namespace to the parameters of the function 
below. i had to remove the outer enclosing namespace declaration, because the 
compiler complained:
virtual void init(const GUIEventAdapter& ,GUIActionAdapter&); -> virtual void 
init(const osgGA::GUIEventAdapter& ,osgGA::GUIActionAdapter&);


i only tested it for a short time but the manipulator worked very smooth. there 
were only two problems i encouterd:

in case of my terrain, the starting position is high above ground - i have to 
switch to free-mode, because when remaining in default-mode: "grounded" the 
camera position always resets back to initial start position after some time of 
falling down to ground. (console output, LOST IN SPACE), but never arriving it. 
i think i can fix this when providing individual setHomePosition values.

the other issue is, that i sometimes fall through the terrain (tested in 
free-mode, can't try the other one, because when i'm finally onground and 
switch to grounded-mode, i restart high above the ground, with the problems 
described above). i' dont have much experience with manipulators, collisions 
detection, etc.,  but the cause for this could be that my osgdem generated 
terrain has different LODs regarding polygon resolution. maybe on the 
translations, the collision detection has problems with possible cracks in 
polygons? 

anyway this is a very good manipulator, keep up on it!

Thank you!

Cheers,
Christian

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to