History: Ogre Procedural Geometry Library
Source of version: 6
Copy to clipboard
{DIV(class="clearRight")}{img fileId="1982" align="right" thumb="y" rel="box[g]" width="300" desc="click to enlarge" stylebox="border"}
{DIV}
{DIV(class="clearRight")}{img fileId="1983" align="right" thumb="y" rel="box[g]" width="300" desc="click to enlarge" stylebox="border"}{DIV}
__Ogre Procedural__ is an Ogre3D based library enabling developpers to quickly create geometric primitives, such as cubes, spheres, cylinders...
__Autor:__ [http://www.ogre3d.org/forums/memberlist.php?mode=viewprofile&u=4982|Mikachu] (Michael Broutin)
__Licence:__ MIT License
Source code and downloads you find on the [http://code.google.com/p/ogre-procedural/|project page].
If you have questions, just use this [http://www.ogre3d.org/forums/viewtopic.php?f=11&t=60773|forum topic].
!!Features
It can build the following primitives :
* Box, RoundedBox
* Plane
* Sphere, IcoSphere
* Cylinder, Tube, Capsule
* Cone
* Torus, Torus knot
__Planned:__
* extrusion and revolution based meshes
* a plug-in for the scene editor ((Ogitor))
!!Download
Downloads are available in the [http://code.google.com/p/ogre-procedural/downloads/list|download section] of the project page.
Precompiled binaries are provided for VS2010 and for CB+MingW (linux support may come later, but I don't have a Mac...)
Source package is also available for all platforms (CMake based project files)
!!Usage Examples
__Create a sphere:__
{CODE(wrap="1", colors="c++")}
//Initialisation
Procedural::Root::getInstance()->sceneManager = mSceneMgr;
//Create a sphere
Procedural::SphereGenerator().setRadius(5.f).setUTile(.5f).generate("mySphere");
mSceneMgr->createEntity("mySphere");
{CODE}
__Create a pipeline:__
{CODE(wrap="1", colors="c++")}Procedural::Path p = Procedural::BezierPath().addPoint(0,5,0).addPoint(0,4,10).addPoint(10,5,10).close().realizePath();
Procedural::Shape s = Procedural::CircleShape().setRadius(1.5).realizeShape();
Procedural::Extruder().setExtrusionPath(&p).setShapeToExtrude(&s).realizeMesh("extrudedMesh");{CODE}
!!How to build
This is a list of basic steps to compile ogre-procedural from source.
Prerequisites:
* Install Cmake
* Install Ogre, either from source or precompiled SDK (1.7 or 1.8)
* If you are using MS Windows, make sure that there's an evironnement variable OGRE_HOME set to your ogre SDK directory
Compiling and running the sample:
* Generate project files using Cmake
* Compile, run, and enjoy :) ...
!!See also
* [http://code.google.com/p/ogre-procedural/|Project page] on code.google
* [http://www.ogre3d.org/forums/viewtopic.php?f=11&t=60773|Forum topic]
* ((ManualObject))
* ((GeometricMesh)) - Creating various geometric/geodesic shapes