Vertex coords of a child when loadanimmesh.. HELP!

Blitz3D Forums/Blitz3D Programming/Vertex coords of a child when loadanimmesh.. HELP!

Pinete(Posted 2005) [#1]
Hi all,
Please, someone could help me with this?

I need to know each vertex position in a child entity.
(a entity loaded with Loadanimmesh).

I try to access in using traditional methods, first
make reference to Scene Root, after that catching the
entity I need to work with and using getsurface, countvertex and vertexX, vertexY, etc..
but the returned values are wrong and I don't understand
what's the reason!

Maybe the vertex position returned by vertexX,y and z are
relative to someting but I don't know what's that.

Some idea???


big10p(Posted 2005) [#2]
I don't believe it's possible to get the coords of vertices transformed by animation. The x,y,z values you're getting are probably the coords of the base (unaminated) mesh.

You're not alone, btw. This functionality has been requested many, many times.


Pinete(Posted 2005) [#3]
Thanks big10p,

Really I'm trying to obtaing the vertices of zones of a map
in which I will put grass and tress.
The b3d model of the map is not animated but I load
it with loadanimmesh in order to access to the childs.

It's the same? The things I tell you can change something?

Thanks in advance,


big10p(Posted 2005) [#4]
Oh, if it's not animated then VertexX/Y/Z should work, as far as I know. You do know the coords are relative to the mesh they are part of, right? If you need to convert these to world coords, use the TFormPoint command.


Pinete(Posted 2005) [#5]
Thanks a lot!
;)