Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.95 KB

File metadata and controls

55 lines (37 loc) · 1.95 KB

Usage

Loading a model

To load a model, you must pass the full path to the model file.

BasicOpenGLViewer.exe "<full path to model file>"

Important ! Some models may reference external files (e.g. textures).

All referenced files are assumed to be in the same directory as the model file.

Error model

If a model fails to load, the default 'error' model will be loaded.

Null texture

If a texture fails to load, the default 'null' texture will be used.

User Interface

Dev messages

The dev messages, located at the top-left of the application window, displays messages about the application initialization state (e.g. GLFW initialization, model and texture loading, shaders creation, etc.)

Controls

The controls, located at the top-center of the application window, displays all available controls and their associated key (e.g. Move forward, Reset camera, etc.).

Options window

The options allow you to change how the model is rendered. The options window can be dragged and resized.

Draw Filled Draw the model mesh
Draw Normals Draw the model's normal vectors
Enable Lighting Enable diffuse lighting
Use Texture Enable textures
Wireframe Overlay Enable wireframe overlay
Draw Bones Draw skeleton bones, if any
Display Bone Names Display skeleton bone names, if any
Draw Axis Helper Display 3D unit axis (X,Y,Z) helper
Draw Grid Helper Display 3D grid helper
Skin Choose which mesh skin to display
Animate Enable animation mode. When disabled, the model's bind pose is used. (only if the model has support for skeletal animation)
Animate # Choose which animation to play. (only if the model has support for skeletal animation)
Animate Frame The current animation frame. (only if the model has support for skeletal animation)