Mesh modification

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
Clueless

Mesh modification

Post by Clueless »

I saw another post in the help section mentioning mesh modification, but I just wanted to ask this, to help clear my brain up a bit.

An animated mesh is NOT modifiable correct? Example:
IAnimatedMesh* mesh = SceneManager->getMesh(filename);

An IMesh created from an animated mesh, which is the only way that I have seen them created, is NOT modifiable correct? Example:
IMesh* mesh2 = mesh->getMesh(0, 255, -1, -1);

BUT, if I copy the IMesh into an SMesh, that mesh IS modifiable correct? Example:
SMesh* clone = SceneManager->getMeshManipulator()->createMeshCopy(mesh2);

I can then play with the internals of the MeshBuffers of that SMesh correct??

Is it possible then to add that SMesh to a node? I know there is an IMeshSceneNode, but I havent yet seen a SMesh scene node....
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Everything is right as far as I read.
And SMesh is an IMesh, and ISceneManager::addMeshSceneNode accepts an IMesh as parameter, so it should work.
Post Reply