Manipulate vertices after mesh creation?

Everything related to 3D programming
User avatar
kenmo
Addict
Addict
Posts: 2069
Joined: Tue Dec 23, 2003 3:54 am

Manipulate vertices after mesh creation?

Post 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.)
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Manipulate vertices after mesh creation?

Post 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.
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Manipulate vertices after mesh creation?

Post by Fred »

It's planned for the next version.
User avatar
kenmo
Addict
Addict
Posts: 2069
Joined: Tue Dec 23, 2003 3:54 am

Re: Manipulate vertices after mesh creation?

Post by kenmo »

Great! Perfect timing, I'm trying out a new idea and I was just messing with the "manual mesh" examples.
Post Reply