Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Barn Door

Skybox edges and D3DTADDRESS_MIRROR

This topic is 5770 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 there, The skybox in the SDK samples uses... SetTextureStageState( 0, D3DTSS_ADDRESSU, D3DTADDRESS_MIRROR ); SetTextureStageState( 0, D3DTSS_ADDRESSV, D3DTADDRESS_MIRROR ); ...to hide the black lines where the sides meet. Can anybody explain why these calls have any effect? The doc says that mirror mode means that the texture is tiled across the polygon and that the number of tiles is dependant on the texture co-ordinates. So if you have texture co-ordinates (0.0,0.0), (0.0,3.0), (3.0,3.0), and (3.0,0.0) then you get 3X3 tiles. However, the skybox mesh appears to have all its texture co-ordinates in the range 0.0 to 1.0 so why should the texture mapping algorithms add any extra data to cover the edges??? Thanks, BD. [edited by - Barn Door on November 2, 2002 11:32:34 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • 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!