Game Development Community

Heightmap/Different textures

by Nicholas Boelter · in Game Design and Creative Issues · 12/17/2009 (1:05 am) · 4 replies

Ok i read the tutorial on adding more then 1 terrain type (grass/snow ect.), but i just didnt realy understand it. Here is a picture of what im going to use for my terrain types:

http://i59.photobucket.com/albums/g301/jazzman170/BMColorMap.jpg

my heightmap matches exactly that prity much, but its nothing but a dirt texture since i dont know what to do from there. Any help and comments would be greatly appreciated!

ps: picture top left says what each color is.

#1
12/17/2009 (1:29 pm)
Hi Nicholas,

Are you implementing a mask for each of the texture types?

There is a really good explanation of how to do this in the documentation under beginners guide -> adding terrain. It talks about using opacity layers to get your different terrain textures.

I would suggest you walk through that tutorial then try implementing the method on your own terrain.

You will need an opacity mask for each terrain texture for your terrain.
#2
12/17/2009 (5:44 pm)
yea i tried implementing the mask, but when i load its .png file, it gives me a R G B thing down at bottom where you choose the texture you want :/

oh and i did read that tutorial, its a good one but im definatly doing something wrong :P
#3
12/17/2009 (7:57 pm)
The mask has to be 8bit greyscale.

Try converting the image to greyscale prior to converting to .png.
#4
12/18/2009 (12:36 am)
i see, tyvm it works ^^ i had to get photoshop but its working great now! :)