Clone wiki

ogre-procedural / Home

Welcome

Ogre Procedural is a library for creating procedural geometry and textures for Ogre3d based projects.

That includes:

  • Primitives, such as box, sphere...
  • Extruded shapes along paths or around an axis (useful for roads, rails...)
  • Splines
  • 2D Triangulation
  • Textures (in default branch)

Sample Code:

#include "Procedural.h"
...
//Create a sphere
Procedural::SphereGenerator().setRadius(5.f).setUTile(.5f).realizeMesh("mySphere");
mSceneMgr->createEntity("mySphere");

How to use it?

The API reference is a good place to start.

Also, don't hesitate to ask on the forum for help!

Screenshots

Extrusion

Primitives

Table of content

Updated