Sign in to follow this  

Texture Address Modes

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

This topic is 4560 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this