Open rossunger opened 2 weeks ago
Also, I made a script that takes an array of positions and removes the grass near those positions. I use to remove grass near roads and rivers and buildings and other objects.
func clear_mgrass_near_positions(mgrass:MGrass, positions, radius):
for position in positions:
for i in radius*2:
for j in radius*2:
mgrass.set_grass_by_pixel(position.x + i - radius, position.z+j-radius, false)
I've written some editor scripts that allow you to import export grass data and the entire heightmap as one image. Just uncomment the function you want to use.
Some of these take a few minutes to run if you have a reasonably large terrain and godot will freeze while processing them. I had a 8192x8192 terrain with a 0.25density grass and that took 2 or 3 hours, so be warned :)