osghapticviewer is a sample viewer, similar to the one that accompanies OpenSceneGraph (osgviewer).
It loads any model that can be read by osg (except for paging fileformats) and prepares it for haptic rendering.
Additional arguments (except for the ones that OpenSceneGraph accepts are:
||Set the materials TouchMode to Constraint with specified distance"
||Scale the size of the visual proxy pen
||Set the dynamic friction of the haptic surface
||Set the static friction of the haptic surface
||Set the damping in the friction equation (spring)
||Set the stiffness in the friction equation (spring)
||Hash the loaded model for faster intersection test.
||Number of cells in the hash-space in each dimension.
||Visually render the triangles that are haptically rendered
||Do a deep copy and remove any instances of the haptic scenegraph
||Scale the haptic workspace.
||Set the active haptic volume to the bbox of the haptic scene. Default is current ViewFrustum
osghapticviewer --bbox-volume --proxy-scale 10 cow.osg --hash --dynamic-friction 0 --static-friction 0
osgHaptics is in an early stage, there are lots of areas for improvements.
We still think its a fairly head-on API for working with haptics inside OSG. Dont hesitate to get in touch with us if you have questions.
Do you want to contribute? Share ideas? Comment? Bugs?
Direct your inquiries to firstname.lastname@example.org