Game Development Community

Setting Texture Addressing Mode to Clamp instead of Wrap?

by Stanley Tsang · in Artist Corner · 04/28/2007 (2:58 pm) · 2 replies

I couldn't seem to find information on this after digging through the forums. Can someone tell me how, if possible, I can set my textures to use a clamp texture addressing mode instead of wrap? I have some parts of my mesh using textures with alpha and the wrapping would create a very distinct line on the edges when it wraps the pixels and blends the completely transparent pixels with opaque ones. One work around I can think of is adjusting the image itself and shrinking things in, but then I'd have to do it enough to make sure the mipmaps will not display this issue too. If it possible to adjust the texture addressing mode, I much rather take this approach.

Thanks

#1
04/28/2007 (4:27 pm)
...
#2
04/28/2007 (6:58 pm)
Wow, thanks for the quick reply! I'll definitely give it a try when I get home. I'm really excited to see what the upcoming exporter will be like.