How to tile multiple procedurally generated textures?

Posted by Burhuc on Game Development See other posts from Game Development or by Burhuc
Published on 2013-08-17T16:03:11Z Indexed on 2013/11/03 4:14 UTC
Read the original article Hit count: 249

Filed under:
|
|
|
|

I'm trying to develop a procedural tile generator for a game, mostly for the ground tiles, instead of using "hand-drawn" tiles.

To achieve this I'm using Perlin noise and a sine wave with multiple parameters, which already gives me pretty nice results. I don't want to generate 1 tile and repeat that one forever for one ground type, but I want to avoid recurrences, so I'm generating n different tiles.

The problem I'm having now is that I want to tile the generated textures (smooth transitions).

At the moment I have this:

enter image description here

4 256x256 textures.

I thought a simple method would be to just add the positions of the different tiles to the noise generation algorithm, so that, when creating the 4 256x256 textures, it would behave like it would create a 512x512 texture, but that somehow didn't work as intented.

So how can I tile those textures?

© Game Development or respective owner

Related posts about XNA

Related posts about c#