• Advertisement


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

Skybox edges and D3DTADDRESS_MIRROR

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