Microsoft DirectX 8.1 (C++) |
Mesh View Help
Menu Descriptions
File
- Open Mesh File
- Open PMesh File
- Create Shape
- Save Mesh As
- Close Selected
- Close Non Selected
Opens a dialog to select a file in the .x or .m file format to be loaded and viewed.
Opens a dialog to select a file in the progressive mesh format to be loaded and viewed.
Opens a sub-dialog to create some basic shapes that are defined programmatically (text, polygon, box, cylinder, torus, teapot, sphere, cone).
Opens a dialog to save the selected mesh to a file. The file can be written as a text or binary file.
Closes and deletes the currently selected mesh.
Closes and deletes the meshes that are not currently selected.
View
- Wireframe
- Edges
- Creases
- Strips
- Adjacency
- Bounding Box
- Normals
- Texture Coords
- Textures
- Lighting
- Culling
- Hierarchy
- Play Animation
- Pause Animation
- Normal Speed
View all content in wireframe mode.
View all content in solid-shaded mode with the edges drawn in black.
Highlight the creases on the visible meshes. A crease is an edge with a vertex that has a different piece of data on it for multiple faces that refer to it, that is, a different normal for the vertex per face.
Show the strips that are generated by this mesh in blue. The blue line goes from the center of each triangle to the next triangle in the triangle strip.
Show the adjacency of the polygons in a mesh by drawing a line from the center of a polygon to the center of the adjacent polygon.
Draw the bounding boxes for the visible meshes.
Draw the normals of the vertices on the visible meshes in yellow.
Show the texture coordinates for the viewed geometry as rays projecting from the vertices. Because a vertex in Microsoft® Direct3D® can have up to eight texture coordinates, users must specify which sets they would like to view. This viewing mode is especially useful when the texture coordinates are filled with tangents for use in pixel shaders for example.
Display the textures on the visible geometry.
Show the geometry in the scene with lighting calculations still on.
Perform back face culling on the visible geometry when disabled polygons facing away from the camera are not drawn.
Display the frame hierarchy of the meshes that are currently loaded. This is displayed in a separate floating window. To make the window disappear, on the View menu, clear the Hierarchy command.
Play the current animation for the currently loaded geometry if one exists.
Stop the animation at the current frame when playing.
Interpret the time value in the animation from an X file as 4800 units per second. Otherwise, the interpreted value is 30 units per second.
MeshOps
- Optimize
- Weld Vertices
- Split Mesh
- Collapse Meshes
- Reset Matrices
- Mesh Properties
- Skinning Method
- Face Selection
- Vertex Selection
Optimizes the currently selected mesh with the selected optimization method. See the Microsoft® Direct3DX reference pages to see the differences in methods.
Removes duplicate vertices and makes polygons that use these vertices use the nondeleted vertex.
Splits the selected mesh into multiple meshes that are less than specified size in vertices and faces.
Collapses the currently selected meshes into a single mesh.
Resets the matrices for the frames that are loaded to their initial position.
Shows the selected mesh's FVF render states and whether or not it is a 32 bit mesh.
Allows the user to select the skinning method while animating a skinned mesh. The choices are nonindexed, indexed, and software skinning.
Enters a mode for the user to select an individual face on the current mesh.
Enters a mode for the user to select an individual vertex on the current mesh.
PMeshes
- Convert Selected to PM
- Snapshot to Mesh
- Set number of Faces
- Set number of Vertices
- Trim
Convert the selected mesh to a progressive mesh. The conversion uses the error parameters that are entered in a dialog box. For more information on these parameters refer to the Direct3DX documentation of progressive meshes.
Convert the current progressive mesh object to a static mesh object using the current settings of the progressive mesh.
Set the current number of faces in the progressive mesh to a specific number.
Set the current number of vertices in the progressive mesh to a specific number.
Set the minimum and maximum number of faces for a progressive mesh. Once the user has set the trim values to the desired minimum and maximum, the progressive mesh can be trimmed to the selected values, thereby reducing the dynamic range of the progressive mesh.
N-Patches
- N-Patch Selected
- SnapShot to mesh
Draw the current object as an N-Patches object. The scroll bar in this mode selects the amount of N-Patch iterations for the current object.
Convert the selected object to a static mesh based on the current N-Patch settings to create a high-resolution static mesh.
Icons and Usage
Icons
- Selection Modes
- Display Modes
- Topology Display modes
- Info
- Animation Controls
The first three icons are easy ways for the user to select the selection mode. They are Mesh Selection Mode (Arrow), Face Selection Mode (yellow outlined triangle), and Vertex Selection Mode (Red point highlighted triangle). These are the same modes that are available from the menus in MeshOps.
The next icons are easy ways to select the most common display modes for geometry. They are Shaded mode (nonoutlined tri-color cube), Wire frame mode (wire frame cube), and Edge mode (outlined tri-color cube). These are the same modes that are available from the menus in View.
The next icons display specific topological information about the geometry displayed. They are adjacency (A), Strips (S), Creases (C), and Normals (N). These are the same modes that are available from the menus in View.
The next icon is the info button that will display information about the currently selected element.
The last two icons are animation controls for playing and pausing the animation for the currently visible mesh.
Status Bar
The status bar in MView displays the current status of the visible geometry. The order from left to right of the displayed information is currently selected element (face or vertex only), Mesh mode (polygon, Pmesh, or pMesh), display frames per second, display triangles per second, number of displayed triangles, and number of displayed vertices.
Scroll Bar
The scroll bar will appear in two of the three mesh modes, pMesh and nPatch mode. In pMesh mode, the scroll bar indicates the range of displayed triangles for the progressive mesh. You can slide the scroll bar up or down to change the number of triangles displayed. In nPatch mode, the scroll bar indicates how many nPatch levels are being used. As the scroll bar is moved up or down, the number of nPatch interactions performed are adjusted accordingly.