vertices position

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
PJjerry
Posts: 28
Joined: Mon Oct 24, 2005 6:57 pm

vertices position

Post by PJjerry »

(1) Say after successfully importing an obj model can I access the vertices info? (positions, normals, uvs....) how?

(2) Can I "alter" the vertices info and get it updated in the render view? (ex: change vertices[39].x from 0.0f to 3.0f) If so, how?

TIA.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

All the model info is loaded into a mesh buffer which you can access from the mesh that you loaded; IMesh/IAnimatedMesh.

Note that any changes you make will affect all nodes that use that mesh though.
Image Image Image
PJjerry
Posts: 28
Joined: Mon Oct 24, 2005 6:57 pm

Post by PJjerry »

wow, that's quick.
thanks for the hint :D
Post Reply