Tiled Seamless repeating terrains

A forum to store posts deemed exceptionally wise and useful
Post Reply
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Tiled Seamless repeating terrains

Post by BlindSide »

Hey guys I got a great idea open up GIMP, make the texture sizes really big like 2560x2560 (or whatever multiplyer of your preferred terrain size is) and then use the Plasma2 filter, tick tilable vertical and horizontal, then play around with the sliders until you get something you like. Make sure to have it pretty detailed and grainy, to compensate for the fact that this is a huge image.

After this, you can just select lots of 256x256 and save them seperate, or load the whole thing and somehow extract the individual parts. The nice thing is that you can have an endless repeating tilable world, without that much work. (Cept copying and pasting 100 terrains might be annoying lol, ill try to think of an alternative for this...)

Anyway youll have 100 terrain tiles that are seamless, and when layed out correctly can repeat in all directions (Useful for simulating a planet or something of that sort)

Cheers.

EDIT: Read post below Midnight's for update.
Last edited by BlindSide on Tue Apr 03, 2007 11:18 pm, edited 1 time in total.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Im gonna share a nice tool I just made, it takes a 2560x2560 heightmap file and splits it into 100 smaller ones, for tiling the terrain. Who knows it might be a better idea to just use Spintz's tiled terrain scene node but I go lazy har har. Here it is:

Terrain Splitter

PS: Sorry for using the bandwidth spintz I had nowhere else to put it hope you dont mind...
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

hmm this might be useful. 8)
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

WOOPS :oops: Nevermind dont use the tool its a bit broken. It works kind of but the textures are all scaled wrong so that you dont get a finished product that lines up (Thanks to irrlicht changing texture sizes on its own to powers of 2). Also for the tutorial 2048 is maybe a better number than 2560.

Cheers
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Ok I fixed up the terrain splitter, now it takes a 2048x2048 image file and splits it into 64 smaller ones. Note that the first row will have to be tweaked (See the HowToUse.txt)

Here it is (Same link):
Terrain Splitter
iZigoo
Posts: 53
Joined: Fri Feb 23, 2007 1:32 pm

Post by iZigoo »

Looks like a cool idea !

Would be great if you make a cool irrlicht demo with it and try
how it would look like ...
Tiled terrain is a feature irrlicht really lacks ...
-------------------------------------------------------
iZigoo - The open 3D internet

iZigoo Homepage
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Post by olivehehe_03 »

Seems like a good idea. Splitting it into tiles can help to increase framerate too, for example, the tile the player is on and the 8 around it are the only ones displayed until the player moves onto a new tile.
Tell me what you cherish most. Give me the pleasure of taking it away.
Post Reply