Hi christian, I'm glad to hear feedback on this manipulator. The problem you mention about the home position is exactly those I have to face right now. Ideally the camera should fall down to the terrain. Anyway I can send you the osg example I set up so far (with the bug) and you see if you can do something. Just tell me if you are interested. Cheers
Loïc Simon On Tue, Jun 2, 2009 at 2:54 PM, Christian Sam <[email protected]> wrote: > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

