QtLargeModelViewer

NAME

QtLargeModelViewer - demonstrates adaptive viewing and simplification

SYNOPSIS

QtLargeModelViewer

DESCRIPTION

The QtLargeModelViewer program is a demonstration of the adaptive viewing, simplification, and ordering traversal techniques in Open Inventor.

File Menu

The File menu items allow you to load scene files in the Qt Large Model Viewer.

View Menu

The View menu allows you to change the viewer type, activate collision detection and gravity when in a Walk viewer, set stereo and stereo parameters, adjust adaptive viewing parameters, select the transparency type, and turn on and off various display options.

Traversal Menu

The Traversal menu allows you to experiment with the new ordering nodes derived from SoRenderList. This menu alters the type of grouping node kept above the loaded scene. This node is kept below the lights and camera, but above the actual geometry. The default option is SoSeparator, which will result in the usual traversal behavior. The other options use an SoValueOrdering node, an SoOctreeOrdering node, or an SoOcclusionCulling node.

Processing

The Processing menu allows you to apply actions to the loaded scene. This menu is only available if a scene is loaded. Note that you can only simplify the scene once. If you want to try a different simplify technique on the same scene, you will have to reload the original file again.

Viewpoints

The ViewPoints menu allows you to change the camera position to one of the viewpoints contained in the scene graph. This menu is only available if VRML viewpoints are present in the loaded scene.

Animations

The Animations menu allows you to animate the camera in the scene, if the scene has an LMV_ANIM sub scene graph. An LMV_ANIM sub scene graph consists of a separator node called "LMV_ANIM" which contains an SoTransform node (whose name is the name of the animation) and a sub scene graph for the moving object.

The menu allows you to select an LMV_ANIM to follow, i.e., the SoTransform node translation and rotation fields are used as a reference for the camera, even if they are changing due to an engine connection. The Animations menu also has items to select various viewing options:

SpaceMouse / SpaceBall

The QtLargeModelViewer supports SpaceMouse/SpaceBall devices. Support and drivers for the SpaceMouse/SpaceBall are available at: www.3dconnexion.com.

By default, you are in rotation-only mode. You can use the mouse buttons to change the mode or perform other actions, as shown:

SOURCE CODE

Source code to QtLargeModelViewer is in $OIVHOME/src/Inventor/examples/Qt/QtLargeModelViewer.

OPTIONS

QtLargeModelViewer [-Pfilename] [infile]

filename is the name of an Open Inventor configuration file.
infile is the scene file to open.

The configuration file can contain any of the standard Open Inventor configuration parameters, plus any of the following additional configuration parameters, which are specific to the QtLargeModelViewer:

FILES

$OIVHOME/data/LargeModel/*

The "formula1" example contains many SoLOD nodes, so the best method would be to use the DecimationStrategy dialog to set the desired level of detail, and leave the Traversal as "Separator". This would also be the case for files output from the Simplification demo programs.

The Harley.iv file contains many parts, but does not contain LOD nodes, so the ValueOrdering node can be used to allow the scene to be decimated through bounding boxes and drop culling of individual shapes, or a simplify action can be applied.

The directory "allModels" under "data/models", uses WWWInlines to link the other example files into one scene. Each file represents a directory under data/models. The file "allModels.iv" joins these files into one large scene. This can be used as an example for the OctreeOrdering node.

$OIVHOME/data/models/toys/TrackSample/*

These files contains LMV_ANIM sub scene graphs. Load animation.iv to exercise features of the Animations menu. The actions (View from Top, etc.) apply to the selected item, not to the entire scene.

SEE ALSO

ivfix, Large Model Viewing Overview, SceneViewer, SoGetPrimitiveCountAction, SoGlobalSimplifyAction, SoLevelOfSimplification, SoLOD, SoOctreeOrdering, SoRenderList, SoReorganizeAction, SoShapeHints, SoShapeSimplifyAction, SoSimplifyAction, SoValueOrdering, SoWinViewer