Adding trees
Just wanted to start by saying thank you! This is an amazing project.
I'm attempting to implement trees. While I think I have a decent strategy in mind (draw sprites based on moisture, elevation, and aspect), I can tell I have a lot of learning to do before I'm able to contribute anything of use.
You had mentioned on your blog that trees were possibly on the horizon. Do you have any example code or ideas that I could learn from while I get up to speed?
Thanks! I'm not actively working on this project anymore :( but there are some nice posts on Scott Turner's blog:
- Forest areas
- Forests vs individual trees
- Different types of individual trees (you can see he spent all of April and May on this topic)
Given how mapgen4 works, my guess is that individual trees will be easier than a forest region, and you could draw one tree as a billboard sprite at each voronoi polygon.
These look like great great resources!
Makes sense to draw one tree per polygon. I was having trouble working out how to place them on the map-- That'll be a big help. Maybe I can do clusters of two or three trees if I need to increase density in places.