Advertisement

ms3d texture coordinates

Started by August 07, 2002 05:43 AM
2 comments, last by blender 22 years, 6 months ago
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
Advertisement
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.
hehe

well this is because milkshape uses a top down texture coordinate system while opengl uses an bottom up system
http://trigger.xenyon.net/

This topic is closed to new replies.

Advertisement