| Poster | : aguacate | | Posts | : 25 | | Country | : México | | City | : Monterrey |
| | | | Posted by aguacate on 02/01/2009 at 14:22:29
| | I want to place a tiny sphere in one of the vertices of a 3D Model. Which vertex in?
It doesn't matter, pick one randomly.
I can read the vertices and apply over them the transformations that I use in the World parameter of the BasicEffect.
The 3D Model and the tiny sphere are processed (rendered) in the Draw(..) very well.
I have
cantVertices = persona.Meshes[parte_cuerpo_piercingIndice].MeshParts[0].NumVertices;
verticesXmalla = new VertexPositionColor[cantVertices];
persona.Meshes[parte_cuerpo_piercingIndice].VertexBuffer.GetData<VertexPositionColor>(verticesXmalla);
for (int i = 0; i < cantVertices; i++)
{
verticesXmalla[i].Position = Vector3.Transform(verticesXmalla[i].Position, transform);
}
|
My goal is to set the tiny sphere over the surface of the 3D Model, what do I get?
I set the tiny sphere, but it does not make contact on the surface of the 3D Model! | |
|
|