SceneViewer - 3D editor and viewer for Open Inventor scenes
SceneViewer [-e env_file] [file]
SceneViewer is a program for viewing and interacting with Open Inventor scene graph files (the SGI 3D file format standard). SceneViewer was written to demonstrate Open Inventor features, and serves as the basis for the IRIS Explorer Render Module.
When SceneViewer is run, a window appears containing the Open Inventor examiner viewer and a menu bar. The viewer allows the user to interactively change the view of the scene through direct manipulation, or indirect slider and push button controls. The menu bar contains the following menus:
File
This menu supports file reading and writing, and launches a dialog for printing to a printer or to PostScript file.
Edit
This menu enables copy and paste of 3D data, selecting all objects, and deleting the currently selected objects.
Viewing
This menu controls viewing options. It allows different viewing paradigms to be employed: the examiner viewer which provides a virtual trackball interface, the fly-through viewer for traveling through expansive data sets, the walk viewer for architectural walk-throughs, and the plane viewer for orthographic projections. The menu also enables different types of transparency, fog effects, antialiasing, and background color controls.
Selection
This menu allows the different selection policies to be demonstrated. A selection policy determines how objects get added and removed from the collection of selected objects.
Editors
This menu launches the material editor and transform sliders. An object must be selected for the menu to be active.
Manips
This menu allows different manipulators to act on the current selection, including the trackball, handle box, jack, center ball, and transform box. Manipulators can also be turned off, in which case selected objects are surrounded with a red wireframe box highlight.
Lights
This menu allows directional, point, and spot lights to be created and edited. It also allows lights to be turned on and off.
For more information on how to use the viewers and editors employed by the scene viewer, please see SceneViewer's runtime help cards.
When SceneViewer is run, a window appears containing the Open Inventor Examiner Viewer and a menu bar. The viewer allows the user to interactively change the view of the scene through direct manipulation, or indirect slider and push button controls. (The figure below shows the SceneViewer on a Windows system. On a UNIX system, its appearance will be slightly different.)
The SceneViewer
- Menu bar. The menu bar contains the File, Edit, View, Selection, Editors, Manips, Lights, ViewPoints, and Help menus.
- Toolbar. This is a standard Windows application toolbar.
- Graphics Area. You can use the cursor to interact with the objects in the scene. Pressing the right mouse button will bring up a context-sensitive menu.
- Rotx. In Examiner Viewer mode, this thumbwheel rotates the model about the screen X axis.
- Status Area. This area displays status messages.
- Roty. In Examiner Viewer mode, this thumbwheel rotates the model about the screen Y axis.
- Zoom. The zoom slider adjusts the camera's field of view. Field of view is specified in degrees.
- Dolly. This thumbwheel moves the camera in and out.
- Viewer Buttons. If the SceneViewer window is too small, not all of these buttons will be visible.
Source code to SceneViewer is in $OIVHOME/src/Inventor/demos/SceneViewer.
The following command line options are allowed:
-e env_file Read the passed environment file, and use the lights, camera, and environment settings found there.
$OIVHOME/data/models/* - Sample 3D data files