#How do i make an plant system?
1 messages · Page 1 of 1 (latest)
im trying to make a system that generates plants over terrain
BUT i dont want it to pivot to an specific Y and just pivot over the terrain's chunk Y
like i dont want plants underground
like the plants in minecraft
like in an layer of terrain, NOT just an specific lane
If you've procedurally generating chunks then you should have a corresponding heightmap. Else you could always just use some raycasts mixed with some logic (don't place plants on top of stone, don't place them under water, etc. etc.). Then just make sure to add some noise filter or whatever on it. To avoid it from either overlapping too many plants, or avoid it from forming a perfect grid (unless you prefer that for some reason, then just go for that)
Exactly
I think by noise you're saying Perlin Noise
I would’ve said perlin if I meant specifically perlin
Different noises will give the plant generation a different feeling
but anyways, I don't think I would have to do G64 maps
1 out of g64
so an script would generate an height map