Milkshape Texture mapping
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
January 27, 2001 03:03 PM
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement