Game Development Community

Moire type Pattern on terrain

by Steve Lamperti · in Torque Game Engine · 03/29/2006 (11:53 am) · 4 replies

I am seeing an interesting thing, that I was hoping someone could help me with. In our project, we just have completely flat terrain, and mostly off white. (I have a pattern with grid lines on it.) Everything looks fine, except for a strange pattern that I am seeing on the terrain. I imagine that most people aren't seeing this, as the flat terrain thing is probably a bit unusual for most TGE projects, but if anyone has seen it, or has any suggestions as to how to remove it, I would appreciate any feedback.

Screenshot of the grid, and the window content:
www.imaginethatftp.com/grid.jpg
Zoomed back a bit to show the pattern I am talking about:
www.imaginethatftp.com/grid1.jpg

#1
03/29/2006 (1:19 pm)
Disable the detail texture in the mission editor. That should fix it.
#2
03/29/2006 (2:39 pm)
@peter,

I realized after posting that some people might think that. I'm not talking about the detail texture. I'm talking about the light gray pattern lines in the second screen shot, that are doing interesting things that look a bit like crop circles. I should try to come up with a better screen shot that shows them more clearly, as they are a bit subtle.
#3
03/29/2006 (3:10 pm)
Those are artifacts that are created by your video card stretching the textures. You can try turning on trilinear filtering, and seeing if that will help: $pref::OpenGL::textureTrilinear = 1;
Otherwise, you will need to modify your textures so that the pattern is less regular.
#4
03/29/2006 (5:15 pm)
@Jaimi,
Thanks for the suggestion. I found a couple of interesting things while acting on your second suggestion, that I should modify the texture. I will post them here, in case anyone else has a similar problem:

1) My texture, which was just white space and straight lines, was suffering some serious issues due to the fact that it was a jpg. I made it a png, and it got smaller and less distorted. (I believe that this was due to the white space and straight line nature of the texture. For most textures, I believe jpg will usually be better.)

2) The pattern was in some way due to the fact that I had three textures that were all the same, but were painted seperately onto the terrain. (I.e. I have grid1, grid2, and grid3, that all are exactly the same.) When I repainted with just texture grid1, the pattern went away. I guess the pattern I was seeing was in some way the seams between the different textures, even though the texture files were identical.