Print

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(external link).

Download & example

The Debug Drawing Utility Class is part of the official repository(external link). You can download the latest source code from there.
A short introduction can be found in this forum topic(external link) or in the original Debug Drawing Utility Class article(external link) (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(external link) to discuss with the class author.
For Mogre specific questions use this forum topic(external link).

Screenshots

Image

Image

Image


Contributors to this page: Beauty10198 points  , Tubulii536 points  and jacmoe133512 points  .
Page last modified on Sunday 15 of January, 2012 16:11:38 UTC by Beauty10198 points .


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.