Hi,
I've created a HeightMap and now i want to set rock,gras,water.... textures to the map.
Is there a way to set different materials to one Manualobject?
Wiki says that I shouldn't create one big mesh but rather smaller ones..
So my HeightMap is a big puzzle but how can i connect these puzzle parts without saving information twice?
thanks
Manualobject with different materials
-
- Gnoblar
- Posts: 5
- Joined: Mon Oct 28, 2013 3:43 pm
Manualobject with different materials
- Attachments
-
- Map.jpg (68.79 KiB) Viewed 741 times
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Manualobject with different materials
Alpha splatting would be the way to go, in my opinion. This is where terrain uses a single material that blends multiple splat textures using a splat map. Normally, but not necessarily, the splat map is a texture where the rgba channels sum to 1.0 with each channel representing how much of the corresponding splat texture to blend into the final color. So for example, if you have 4 splat textures (rock, snow, dirt, grass) you need a single splat map that defines how each is blended (eg. red channel for rock, blue channel for snow, and so on). This requires a shader, and there is an example in the wiki that can use 2 splat maps to blend up to 8 splat textures: http://www.ogre3d.org/tikiwiki/Terrain+Alpha+Splatting