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?
[Library] luaFortune: Libraries for producal generation.
- TheRedRaccoon
- Prole
- Posts: 12
- Joined: Sun Feb 21, 2016 6:55 pm
Re: [Library] luaFortune: Libraries for producal generation.
This article should explain it rather efficiently.
http://www-cs-students.stanford.edu/~am ... eneration/
http://www-cs-students.stanford.edu/~am ... eneration/
Re: [Library] luaFortune: Libraries for producal generation.
Hi
Thats the same article by Amit I am (and apparantly half the gamedevs) following.
But i am not sure how to do the next step.
I need to generate a list of neighbors for each polygon. No idea of achieving that. :/
Thats the same article by Amit I am (and apparantly half the gamedevs) following.
But i am not sure how to do the next step.
I need to generate a list of neighbors for each polygon. No idea of achieving that. :/
Re: [Library] luaFortune: Libraries for producal generation.
Maybe you can take a look at this one instead?
https://www.love2d.org/forums/viewtopic ... 26#p171426
https://www.love2d.org/forums/viewtopic ... 26#p171426
I have added some new stuff: polygon detection, neighborhood calculation. See attached the new demo.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests