Archived

This topic is now archived and is closed to further replies.

Milkshape Texture mapping

This topic is 6162 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m using ms3d models but can''t get the damn textures to stop clamping. I don''t see anything in the model code that specifies clamp and I specify repeat when I init the engine. This isn''t a problem on the player models but it just looks down right fugly on the world maps. Hunter-Killer

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
This has nothing to do with the models themselves, it is an OpenGL issue. You need to set your texture modes to GL_REPEAT rather than GL_CLAMP when you want a texture to repeat.

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);

Read this, http://nate.scuzzy.net/docs/advtexture/ ,so you know what you are doing in the future.

Share this post


Link to post
Share on other sites