Re: [Library] luaFortune: Libraries for producal generation.
Posted: Tue May 10, 2016 8:12 am
Sorry for the thread necromancy, but I need some help with the procedural map generation as done in Amit's article.
I am pretty newb so need some handholding.
I have generated a points field and created a vrornoi diagram around it, using this library.
What next?
I understand that I need to define faces as objects now (made up of vertices and having ids).
How can I create an object for each face ?
The polygons seems to have arbitrary number of corners (some have 4 others have 9)
Then i need to find neighbors.
How do I do that?
can someone give me a rough flow to follow?
I am pretty newb so need some handholding.
I have generated a points field and created a vrornoi diagram around it, using this library.
What next?
I understand that I need to define faces as objects now (made up of vertices and having ids).
How can I create an object for each face ?
The polygons seems to have arbitrary number of corners (some have 4 others have 9)
Then i need to find neighbors.
How do I do that?
can someone give me a rough flow to follow?