Preventing repeating terrain textures.

Started by
5 comments, last by LorenzoGatti 10 years, 2 months ago

The grass tilemaps that I use for grass looks very repetitive. Basically, I am taking a single repeatable grass texture and repeating it over and over again.

I really like playing Heroes of Might and Magic 2. It's an old classic with 8 bit graphics. The thing is, their terrain tiles looks great. It's very hard to notice the repetitions. Attached are two blank maps I created with their map editor:

[sharedmedia=gallery:images:4703]
[sharedmedia=gallery:images:4702]
I was wondering how they achieved this?
And how would you prevent obvious repetition in a modern engine?

My Oculus Rift Game: RaiderV

My Android VR games: Time-Rider& Dozer Driver

My browser game: Vitrage - A game of stained glass

My android games : Enemies of the Crown & Killer Bees

Advertisement

Create a number of different variations that tile together, and select randomly. If you wanted to get more complex, you could use a Wang tiling scheme ( http://en.wikipedia.org/wiki/Wang_tile ) but doing so would complicate both your tile generation and your auto-tiling filler routine.


Create a number of different variations that tile together, and select randomly.

Yup, and also make sure your terrain tiles aren't too "interesting". The stronger the shapes/details in them, the more the pattern will be visible.

The tiling will also become less noticeable if you can add random things on top of it, like rocks, bushes, etc....

Getting more complex. you could blend two tile layers together, or vary the lighting/color slightly of each tile.

Basically, making tiles not look repeated is a bit of an art.

One simple trick used in 3d terrains is to sample the same texture twice with different uv scales and blend (modulate for example) the samples together. This will reduce the tiling effect considerably.

Cheers!

In your image editor, use a high-pass filter (Photoshop: Filter->Other->High Pass) to remove the low frequencies from the textures. This will make the tiling less noticeable.


One simple trick used in 3d terrains is to sample the same texture twice with different uv scales and blend (modulate for example) the samples together. This will reduce the tiling effect considerably.

Yes, that is a very good approach. Simply use the uv coordinates of your geometry and use perlin noise or other to blend grass, rock, dirt, etc.. together. That with proper mipmapping will go a long way in making your terrain interesting to look at instead of an endless world of the same texture tiled over and over again.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Create a number of different variations that tile together, and select randomly. If you wanted to get more complex, you could use a Wang tiling scheme ( http://en.wikipedia.org/wiki/Wang_tile ) but doing so would complicate both your tile generation and your auto-tiling filler routine.

On the other hand, placing variation features (e.g. flowers) across tile edges and corners and not only in the middle of tiles requires having more than one edge type. How far do you need to go to break the grid depends on graphical style.

Omae Wa Mou Shindeiru

This topic is closed to new replies.

Advertisement