md3 tex coords
hi guys, I got an md3 being loaded and rendered.....the tri's get rendered good, but the texture is all messed up. The coords I'm getting from the md3 file some are negative and others are > 1....what do I need to do to the tex coords??
any help appreciated.
Try setting the texture coordinates to wrap instead of clamp. I believe it is a sampler state to set that.
Edit: Yup, here's the function call: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/SetSamplerState.asp You'll want a state type of Address U and Address V, and set it to wrap or mirror.
Edit: Yup, here's the function call: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/SetSamplerState.asp You'll want a state type of Address U and Address V, and set it to wrap or mirror.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement