Vertex Position
Blitz3D Forums/Blitz3D Programming/Vertex Position
| ||
I can do aTFormPoint VertexX(s,i),VertexY(s,i),VertexZ(s,i),mesh,0 CameraProject usecam, TFormedX(),TFormedY(),TFormedZ() to get the vertex position in screen coords using projectedx(),etc... but when I animate the mesh model, these positions don't move. What am I missing? |
| ||
Are you referring to B3D boned animations, or other? The former doesn't allow you to access the vertices animated state unfortunately. You can calculate the positions though, from the bone data, but it is rather complicated. You have to parse the original B3D file to know which bone each vert is allocated to. |
| ||
no, I'm exporting a morph animation from max using b3dpipeline. Does this not all access to verices in an animated state either? thanks for the help. |
| ||
Morph animations (using b3dpipeline) are still boned animations with one bone per vertex. If you do the morph animation manually (through code) you will have instant access to the vertex positions. |
| ||
Bugger. thanks. didn't realise the boned thing. And god, my previous post is unreadable. |
| ||
If you are using morphed animation, the bones are one bone per vertex, so simply access the bones to give you the vertex positions :) |
| ||
and for normal boned animation I imagine replacing mesh,0 with bone,0 in the TFormpPoint will do the business |
| ||
ahh. ta. |