how do I get the current position of a vertex

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
lumirion
Posts: 79
Joined: Tue Sep 13, 2011 7:35 am

how do I get the current position of a vertex

Post by lumirion »

I am attempting to port oger's submesh sorting to a custom node. I stored indexes to the extream vertexes of each meshbuffer. Now I need to find the current position of each indexed vertex. I used

Code: Select all

this->getmesh
to access the node's mesh and in each render pass I sorted a list of indextags by the distance of its nearest vertex from camera position. It did render the indicated buffers in the correct order but the order stayed the same for all successive render passes. It seams like I'm not using the updated positions of the vertexes as the animation progresses. I currently use irrlicht 1.7 but plan to upgrade soon. I would post my code but I don't have it with me and I don't have home internet ATM.
Post Reply