ms3d texture coordinates
Hi, I''m trying to implement a support for milkshape ms3d models in my small engine. But I ran into troubles with the texture coordinates. As I undrestood, the triangles of ms3d model are rendered like this:
for(i=0; i<3; i++)
{
glTexCoord2f(pTri->s, pTri->t);
glVertex3f(Vertices[pTri->vertexIndices].pos);
}
Sorry about this short ammount of code, but I think you can see how I''m doing it, but the texture coordinates are messed up.
Is there something I should know about ms3d textures coordinates? </i>
Here is a toturial about importing skeletal animation milkshape models into your engine:
http://rsn.gamedev.net/tutorials/ms3danim.asp
It helped me a lot
http://rsn.gamedev.net/tutorials/ms3danim.asp
It helped me a lot
I have that tutorial, but I haven''t yet read it. I did check how it renders polygons, but I just figured out my problem:
the t coordinate values had to be inverted. Don''t know why but it worked.
the t coordinate values had to be inverted. Don''t know why but it worked.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement