I wonder if it would be possible to use some sort of "vegetation maps" in irrlicht. i´ll explain what i mean:
we create a heightmap for terrain, lets say 128x128.
now we create a vegetationmap for that terrain, also 128x128.
now what is the vegetation map good for?
the color is 0,0,0 black. now were you want to have some sort of plants or grass you have to place a pixel with a color for it.(e.g. 1,1,1).
so far ok? we have a heightmap and a vegetation map which includes a black image with lots of 1,1,1 rgb pixels which should be replaced by models or billboards later
this is how i thought to make it work:
1. the vegetation map is a additional texure of the terrain. lets say texture3.
2. now scan the terrain.texture3 if there are any pixels with the color 1,1,1.
3. if found some pixels like that, create a billboard at this position.
4. repeat this until all pixels (128x128) are checked.
is this somehow possible? if yes i would like to try something like that, it would be a really great addition because its much easier to plant trees,grass,plants or anything else on the terrain like this. any comments or suggestions are welcome
