HI Crag, I don't personally know about the current state of art w.r.t haptic API's but there is an osgHaptics NodeKit that the VRLab in Umea, Sweden developed:
http://www.vrlab.umu.se/research/osgHaptics/ This might be what you need for OSG/Haptic integration. Robert. On Fri, Jun 24, 2011 at 10:49 AM, Craig Fletcher <[email protected]> wrote: > Hi, > > I am trying to integrate OSG with the Sensable haptic libraries and have a > question regarding re-rendering the OSG models. > The haptic models capture the geometry of the graphic models from OpenGL > commands via the depth or feedback buffer. This is an example supplied by > Sensable > hlBeginFrame(); > > // Set material properties for the shapes to be drawn. > hlMaterialf(HL_FRONT_AND_BACK, HL_STIFFNESS, 0.7f); > hlMaterialf(HL_FRONT_AND_BACK, HL_DAMPING, 0.1f); > hlMaterialf(HL_FRONT_AND_BACK, HL_STATIC_FRICTION, 0.2f); > hlMaterialf(HL_FRONT_AND_BACK, HL_DYNAMIC_FRICTION, 0.3f); > > // Start a new haptic shape. Use the feedback buffer to capture OpenGL > // geometry for haptic rendering. > hlBeginShape(HL_SHAPE_FEEDBACK_BUFFER, gSphereShapeId); > > // Use OpenGL commands to create geometry. > glutSolidSphere(0.5, 32, 32); > > // End the shape. > hlEndShape(); > > // End the haptic frame. > hlEndFrame(); > > I believe I need to replace; glutSolidSphere(0.5, 32, 32) by passing the > function a geode and then forcing this to be rendered causing it to be > written to the OpenGL feedback buffer. Could anyone advise me on the best > way to approach this? > > > Thank you! > > Cheers, > Craig > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=40845#40845 > > > > > > _______________________________________________ > 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

