Archived

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

ababkin

question about SKY BOX

Recommended Posts

ababkin    122
hey I get annoying thin lines on the edges when I make a sky box. How do I get rid of them? Thank you ps : Is it possible to insert pictures on this forum? would have been useful!

Share this post


Link to post
Share on other sites
samosa    122
if your using opengl u get rid of the lines by using gl_clamp_to_edge, u put it in the code where u originally bind the texture, if u need follow up help ill help u tomorrow, im really tired today and its late, hope i helped a bit at least, later

,Matt

-= kill one your a murderer, kill thousands your a conquerer =-

Share this post


Link to post
Share on other sites
nlo    130
i had the same problem b4, heard that it''s about nVidia GPU problem... so at last, i''m not using 0.0f & 1.0f for my skybox texture UV, use 0.002f & 0.998f instead, the result is pretty acceptable for me.

Share this post


Link to post
Share on other sites
ababkin    122
I use direct3d and it cannot be the GPU issue since i run it on Savage4 chipset.
Regarding taking 0.001 and 0.999 or so - I want to avoid doing that since it theoretically at least, entails the unevenness and discontinuity between the textures.

Keep it coming tho

Thanks
Alex

Share this post


Link to post
Share on other sites
Zarmax    122
Do this.

// Mirror Texture
m_pGraphicsDevice->SetTextureStageState( 0, D3DTSS_ADDRESSU, D3DTADDRESS_MIRROR );
m_pGraphicsDevice->SetTextureStageState( 0, D3DTSS_ADDRESSV, D3DTADDRESS_MIRROR );
m_pGraphicsDevice->SetTextureStageState( 0, D3DTSS_ADDRESSW, D3DTADDRESS_MIRROR );

Render()...

// Wrap Texture
m_pGraphicsDevice->SetTextureStageState( 0, D3DTSS_ADDRESSU, D3DTADDRESS_WRAP );
m_pGraphicsDevice->SetTextureStageState( 0, D3DTSS_ADDRESSV, D3DTADDRESS_WRAP );
m_pGraphicsDevice->SetTextureStageState( 0, D3DTSS_ADDRESSW, D3DTADDRESS_WRAP );

Share this post


Link to post
Share on other sites
ababkin    122
Many thanks to you guyz

setting texture addresing to MIRROR didnt help tho
but offsetting the texture coordinates on the corners did.
I get perfect skybox now

Thanx

Share this post


Link to post
Share on other sites