Model Viewer Overview

From C4 Engine Wiki

Jump to: navigation, search
Image:warning.jpg Under Construction

This article is still under construction and may contain sections that are incomplete.

The Model Viewer tool module is used to preview entity models and import animations.

Contents

Opening Models

The Model Viewer is opened by selecting Open Model from the Tools menu, or by typing model [path to model / name of model] in the command console. If the Open Model menu item is selected (or name of model is omitted from the console command), then a dialog will appear that lists all of the available model resources:

Image:Open_Model_file_picker.png

Model Viewer Layout

The Model Viewer has the layout shown below.

Image:modelviewer.png

Tool Buttons

Icon Shortcut Function
Image:ModelViewer_OrbitModel.png 1 Orbit Model. Orbits about the center of the model.
Image:ModelViewer_MoveLight.png 2 Move Light. Moves the light source about the center of the model.
Image:ModelViewer_ScrollViewport.png 6 Scroll Viewport. Dragging with this tool pans the viewport.
Image:ModelViewer_ZoomViewport.png 7 Zoom Viewport. Dragging vertically with this tool zooms in and out of the viewport.
Image:ModelViewer_FreeCameraMove.png 9 Free Camera Move. When the mouse button is held down with this tool, the WSAD keys can be used to fly the camera around forward, backward, left, and right. The Space and C keys move up and down.


Animation

The animation list is used to select which animation is applied to the model. New animations can be added by clicking the Import button. Once imported, animations are stored in a sub-folder(s) of the main Data directory. Animations are imported from Collada .dae files stored within a sub-folder(s) of the Import directory.

The slider below the viewport controls what frame of animation is currently displayed. The two triangles beneath the frame slider restrict the range of animation frames when the animation is played using the Play button.

The Loop, Oscillate, and Reverse boxes control how the animation is looped and in what direction the animation is played.

Diagnostics

The Detail level bias slider allows you to preview any levels of detail that are available for the model.

The following table describes the other options that are controlled by the checkbox controls in the Diagnostics section.

Option Description
Show wireframe Highlights the edges of the model.
Show normals Highlights the normal vectors at each vertex.
Show tangents Highlights the tangent vectors.
Show skeleton Displays a wireframe view of the skeleton to which a model is rigged.
Show shadow extrusion Displays the shadow volume extrusions.
Show bounding sphere Displays a sphere bounding the extent of the model.
Freeze motion blur Freezes the full-scene motion blur post-processing effect.


Personal tools