Mesh Loading and Rendering 1 (1/7)




Description

The objective of this first tutorial about visualization is to load an obj file and render it in the viewer.

Key points

OglModel is the main component for rendering file. This is where all geometrical information (vertices, faces ...) are given to OpenGL, which render it afterwards. Vertex Buffer Object is used (if supported) to enhance speed.

Just put an OglModel in the scene and fill the field filename with the path to your OBJ file.

Create a new scene. Clear it of the default components by selecting File > Clear.

Add an OglModel component to the root node. Change the Path to the model (found in the Property 2/3 tab) to /Sofa/share/mesh/dragon.obj

Run in SOFA and Animate.

Nothing happens, but you can see the object.


Next