Page 1 of 1

Manipulate vertices after mesh creation?

Posted: Sat Dec 08, 2012 7:29 pm
by kenmo
I'm fairly inexperienced with the Ogre 3D engine... but I've been messing around with it lately, and creating vertices + meshes "manually" or in-code, not loaded from files.

I'm wondering if it is possible to move the vertices of a mesh in realtime? For example, if I create even a simple 3-vertex 1-face mesh, can I move the vertices (with mouse control maybe) while rendering the entity that uses it?

But wait -- before you say "if you move the vertices you will continually need to recalculate the face normals!" -- this is not a problem here, because my mesh are only going to be in the X-Y plane with normals point straight up in the Z direction.

(Basically I am trying to manipulate 2D polygons, but with 3D acceleration and perspective/zoom/angle effects.)

Re: Manipulate vertices after mesh creation?

Posted: Sat Dec 08, 2012 8:20 pm
by Samuel
If you want to edit a Vertex without having to recreate the mesh I believe the only way is to give the mesh a skeleton. You can't manually give a mesh a skeleton in Purebasic. So you have to use a different program for that. I personally use Blender, but that's just what i like to use.
I'm no expert on 3D though so there may be a easier way of Vertex manipulation.

Re: Manipulate vertices after mesh creation?

Posted: Sun Dec 09, 2012 1:56 am
by Fred
It's planned for the next version.

Re: Manipulate vertices after mesh creation?

Posted: Sun Dec 09, 2012 2:52 am
by kenmo
Great! Perfect timing, I'm trying out a new idea and I was just messing with the "manual mesh" examples.