How is geometry constructed in 0.2?

simed

05-02-2013 11:44:24

I believe 0.2 is the newest version?

I looked at 0.1 with interest but there was some issue with a dependency on ManualObject which was not ideal (sorry I only remember it was bad not the details). How is generation actually done now... is a MO/Mesh created and then instanced to an Entity? Or are Entities created directly perhaps?

What about when you want multiple copies of the same shape - can we create and save the 'template' of the shape as a mesh or something?

Transporter

05-02-2013 12:09:24

0.2 is the current stable release. If you download the source code of 0.3 unstable you have the newest version.

As far as I know it creates a mesh and then entities.

Of course you can save your generated meshs in mesh files. There will be a lua scriptinterpreter where you can write lua files to create procedural geometries.

mikachu

05-02-2013 12:49:39

I looked at 0.1 with interest but there was some issue with a dependency on ManualObject which was not ideal (sorry I only remember it was bad not the details). How is generation actually done now... is a MO/Mesh created and then instanced to an Entity? Or are Entities created directly perhaps?
OgreProcedural works with Ogre::Mesh, but it still uses ManualObject internally to do that (I'll remove this dependency soon, though)
As you're working with meshes, there's no problem in having several entities of the same mesh, OgreProcedural would have to generate the mesh only once.

simed

05-02-2013 12:57:05

OgreProcedural works with Ogre::Mesh, but it still uses ManualObject internally to do that (I'll remove this dependency soon, though)Ah, that was the part I was remembering. Is it a particular issue I need to be concerned about, or does everything get cleaned up as soon as the mesh is created?

Thanks.

mikachu

05-02-2013 12:59:18

OgreProcedural works with Ogre::Mesh, but it still uses ManualObject internally to do that (I'll remove this dependency soon, though)Ah, that was the part I was remembering. Is it a particular issue I need to be concerned about, or does everything get cleaned up as soon as the mesh is created?
Everything is cleaned up once the mesh is created, the only problem is a slight loss of efficiency, since you have an internal step of copying ManualObject's content to a Mesh.