Game Development Community

Texture seams in terrain blocks...

by John Kabus (BobTheCBuilder) · in Torque Game Engine · 04/07/2003 (12:33 pm) · 3 replies

Has anyone tried to remove the texture seams where terrain blocks meet? I took a look at the code and here is my idea of the problem (I could be way off on this one):

First off the seams look like seams that usually appear on light maps. Light map seams are usually caused by clamping the texture with no border pixels (you don't get the nearest neighbor effect). When I checked out the rendering code for the terrain blocks I found the blender code (I'm new to Torque and was never expecting this :)), so it occurred to me that the combo texture / light map is being clamped (because you can't wrap the light map) and causing the seam.

If this really is the problem I'm going to scrap the blender and breakout the textures into multiple TU's. If anyone can tell me that I'm way off, that this is in an upcoming release, or that there is no way to get the engine to work this way, let me know. I'm sure this is something someone has already tried to tackle and your expertise is appreciated.

Thanks...

John.

#2
04/07/2003 (1:46 pm)
EDIT: Jason beat me to it!
#3
04/07/2003 (2:36 pm)
Thanks guys,

Very cool resource that saves a lot of work. I noticed that the resource was older (3 months); do fixes like this make it into releases? Btw: that was a very clever way to approach the problem, I never would have thought of altering the texture to simulate the nearest neighbor effect.

Thanks again...

John.