Archived

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

Barn Door

Skybox edges and D3DTADDRESS_MIRROR

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