#How do i make an plant system?

1 messages · Page 1 of 1 (latest)

daring glen
#

d

#

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

jaunty meadow
# daring glen BUT i dont want it to pivot to an specific Y and just pivot over the terrain's c...

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)

daring glen
#

I think by noise you're saying Perlin Noise

jaunty meadow
#

Different noises will give the plant generation a different feeling

daring glen
#

1 out of g64

#

so an script would generate an height map