Skip to main content
gamedev.net
🔒 Locked

Texture filtering / alignment problem

Started by bazee Jul 29, 2002 at 4:51 PM 1 replies 400+ views
Original Post
bazee
bazee
I''m working on (yet another) terrain engine. To allow for very large landscapes, I decided to split my terrain into "chunks". Each chunk has its own mesh and its own texture. The meshes fit together nicely, and the textures do fit together nicely when viewed in 2D in Paint. But viewed in DirectX, the borders are clearly visible: 

Screenshot 1

With the bilinear interpolation texture filter disabled, the problem is less noticeable, but still there if you look closely:

Screenshot 2

I have tried all the obvious values for texture coordinates, including:

(0,0)-(1,1)

(1 / TEXTURESIZE, 1 / TEXTURESIZE)-( 1 - 1 / TEXTURESIZE, 1 - 1 / TEXTURESIZE)

(0.5 / TEXTURESIZE, 0.5 / TEXTURESIZE)-( 1 - 0.5 / TEXTURESIZE, 1 - 0.5 / TEXTURESIZE)

etc.

But still can''t get rid of those visible seams!

Someone must have come across the problem before (after all my terrain engine is hardly a new idea!). Any ideas?

billybob
billybob
i never had the problem with mine because it is one huge block, with ADDRESS_U, WRAP set.
bazee
bazee
That is what I did initially. Unfortunately, I need very large non-repeating landscapes and therefore very large textures - too big for any graphics card to handle in one texture. So I must use several textures side by side.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.