Advertisement

Milkshape Texture mapping

Started by January 27, 2001 12:54 PM
1 comment, last by Hunter-Killer 23 years, 10 months ago
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
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.
Advertisement
Did you not read my post? I already set that shit when the texture is loaded.

Hunter-Killer

This topic is closed to new replies.

Advertisement