Manipulate vertices after mesh creation?
Posted: Sat Dec 08, 2012 7:29 pm
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.)
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.)