Jump to content
  • Advertisement
Sign in to follow this  
silvia_steven_2000

Texture Address Modes

This topic is 4771 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

Hi all I am trying to tile a texture on the faces of a cube. I am doing the following: m_d3dDev9->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_WRAP); m_d3dDev9->SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_WRAP); and in the texture coordinates I am using 2.0 instead of 1.0 the end result is that the texture is clamped and not wrapped. what could be the reason behind that ? thanks so much

Share this post


Link to post
Share on other sites
Advertisement
It's hard to tell without seeing the rest of your code. It could be something dumb like you're sharing the vertices between adjacent faces of the cube.

The default for those states is WRAP, so I doubt it has anything to do with the lines of code that you've posted. They look fine to me.


Share this post


Link to post
Share on other sites
now it is working fine. the only thing I changed is using textures
like 256 x 256 . I was using non standard ones. wrap, mirror, clamp are working fine. border is not working , I do not know why .

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Border is not supported by all cards. Such as ATI cards. Check the caps.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!