how can i get pointer to indices/vertices from ianimatedMesh

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
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

how can i get pointer to indices/vertices from ianimatedMesh

Post by Malgodur »

I need to get acces to vertices from IAnimatedMeshSceneNode to change they positions, is it possible? Nothing found in docs, cananyone help me?
Kalango
Posts: 157
Joined: Thu Apr 26, 2007 12:46 am

Post by Kalango »

Well you could work with vertex sahders.... Dont know if IAnimatedMesh has vertex manipulation functions within, but if you cant do it with VS you should try building custom scene nodes....
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

I looked into the engine, problem apears after adding MeshBuffers to SMesh ... I can acces vertices from meshbuffer, but its impossible from SMesh



maybe can somebody explain me how can i convert void to array?

Code: Select all

		virtual void* getVertices()
		{
			return Vertices.pointer();
		}
copied froom CMeshBuffer.h
Post Reply