Module opencv::ovis [−][src]
Expand description
OGRE 3D Visualiser
ovis is a simplified rendering wrapper around ogre3d. The Ogre terminology is used in the API and Ogre Script is assumed to be used for advanced customization.
Besides the API you see here, there are several environment variables that control the behavior of ovis. They are documented in @ref createWindow.
Loading geometry
You can create geometry [on the fly](@ref createTriangleMesh) or by loading Ogre .mesh
files.
Blender
For converting/ creating geometry Blender is recommended.
- Blender 2.7x is better tested, but Blender 2.8x should work too
- install blender2ogre matching your Blender version
- download the Ogre MSVC SDK which contains
OgreXMLConverter.exe
(inbin/
) and set the path in the blender2ogre settings - get ogre-meshviewer to enable the preview function in blender2ogre as well as for verifying the exported files
- in case the exported materials are not exactly how you want them, consult the Ogre Manual
Assimp
When using Ogre 1.12.9 or later, enabling the Assimp plugin allows to load arbitrary geometry.
Simply pass bunny.obj
instead of bunny.mesh
as meshname
in @ref WindowScene::createEntity.
You should still use ogre-meshviewer to verify that the geometry is converted correctly.
Modules
Enums
Constants
Apply anti-aliasing. The first window determines the setting for all windows.
allow the user to control the camera.
Render off-screen without a window. Allows separate AA setting. Requires manual update via @ref WindowScene::update
the window will use a separate scene. The scene will be shared otherwise.
Enable real-time shadows in the scene. All entities cast shadows by default. Control via @ref ENTITY_CAST_SHADOWS
draw coordinate system crosses for debugging
Traits
A 3D viewport and the associated scene
Functions
Add an additional resource location that is search for meshes, textures and materials
creates a grid
create a 2D plane, X right, Y down, Z up
creates a point cloud mesh
creates a triangle mesh from vertex-vertex or face-vertex representation
create a new rendering window/ viewport
set the property of a material to the given value
set the shader property of a material to the given value
set the shader property of a material to the given value
set the texture of a material to the given value
Deprecated: use setMaterialProperty
update all windows and wait for keyboard event