If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
Description
It's a utility class for rendering simple primitives like 3D lines, quads and cuboids, without having to keep track of manual objects. It is useful for debugging purposes, since it is quite a hassle to keep track of ManualObject instances, initializing them, attaching them to scene nodes and destroying them just for the sake of debugging. Using this class, all it takes is just one function call to draw a primitive. Note that it works like 2D rendering, e.g. it is cleared every frame. Thus, the draw functions need to be called every frame.
Currently, it only supports rendering of:
- lines
- quads
- circles
- cuboids
- icospheres
- tetrahedrons
This source code is a port of the Debug Drawing Utility Class.
The port was written by user Tubulii
.
Download & example
The Debug Drawing Utility Class is part of the official repository
. You can download the latest source code from there.
A short introduction can be found in this forum topic
or in the original Debug Drawing Utility Class article
(slightly different)
Detailed usage example code you find on the "main page" Debug Drawing Utility Class. They are in C++, but it's easy to port them to C#.
Support
For common questions use this forum topic
to discuss with the class author.
For Mogre specific questions use this forum topic
.
Screenshots
Contributors to this page: Beauty
,
Tubulii
and
jacmoe
.
Page last modified on Sunday 15 of January, 2012 16:11:38 UTC by Beauty
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.
Sidebar
Last changes
- Hydrax
- QtOgre
- SoC2012 Complete the DirectX 11 render system
- SoC2012 Volume Rendering with LOD aimed at terrain
- SoC2012 Improve and Demo the Terrain System
- Mogre and WPF
- SoC2012 Implementation of Off-Screen Particles
- Advanced Ogre Framework
- Ogre overlays using Qt
- Architecture and Design in Games

