osghapticviewer

Umeå universitet

[Tutorials]


 


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:

--constraint <float> Set the materials TouchMode to Constraint with specified distance"
--proxy-scale <scale> Scale the size of the visual proxy pen
-dynamic-friction <float> Set the dynamic friction of the haptic surface
--static-friction <float> Set the static friction of the haptic surface
--damping <float> Set the damping in the friction equation (spring)
--stiffness <float> Set the stiffness in the friction equation (spring)
--hash Hash the loaded model for faster intersection test.
--cell-size <int> Number of cells in the hash-space in each dimension.
-render-triangles Visually render the triangles that are haptically rendered
--remove-instances Do a deep copy and remove any instances of the haptic scenegraph
--workspace-scale <float> Scale the haptic workspace.
--bbox-volume Set the active haptic volume to the bbox of the haptic scene. Default is current ViewFrustum

Example:

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.

Comments

Do you want to contribute? Share ideas? Comment? Bugs?

Direct your inquiries to andersb@cs.umu.se

 
 

 
Navigate at www.umu.se

 



Umeå University
VRlab

Research

 

Linje
VRlab
Umeå University
The information on this page was checked 2006-06-22
Responsible for this page: Anders Backman
 
Address:
VRlab, Umeå university
SE-901 87 Umeå, Sweden
Phone: +46 (0)90-786 96 55
Fax: +46 (0)90-786 61 26
E-mail: vrlab@umu.se