fbx triangle mesh calculation
Posted: Sat Oct 16, 2010 10:43 pm
is there any problem with the fbx automatic extraction of the .fbx models ?
i used that with lots of .x models and everything works good, when i changed to .fbx some models dont works correctly
iam using
to construct the object, but it dont colides with nothing ? Again, with .x models, everything works wonderfull !!!
i used that with lots of .x models and everything works good, when i changed to .fbx some models dont works correctly
iam using
Code: Select all
StaticTriangleGroup.GetVerticesAndIndicesFromModel(model, out vertices, out indices);
triangleMesh = new TriangleMesh(vertices, indices, 0.05f);
triangleGroup = new StaticTriangleGroup(triangleMesh);
triangleGroup.WorldMatrix = Matrix.CreateScale(Scale) * Matrix.CreateTranslation(pos) * Rotation;