Wave function collapse Tutorial 21 Coding - Output Tilemap

preview_player
Показать описание

Wave function collapse is an algorithm that can proceduralny generate a much bigger output - be it an image or in our example a tilemap, that resembles a smaller input tilemap in its overall structure.

This video we finally create output tilemap out of the WFC result

Useful links:

I will try to upload as much episodes as I can but if I can't I will have them all done in a day or 2. So just check back in few days. Thanks!

Project files:

Reference Materials:

Patreon:

Рекомендации по теме
Комментарии
Автор

It was a very helpful series.
Yes, I agree with all comments on the major improvement It could use, but it still manages to produce the output and that too, in a decently coherent code. That is sufficient for me to tinker and adjust according to my requirements. Thank you :)

stashatstake
Автор

Yo, thanks for creating this. I really liked that you had a theory section to start with.
Some things were confusing to follow in the code, like the use of jagged arrays instead of simpler two-dimensional arrays (which I used while following along) - also I was unsure about the constant swizzle of x and y due to columns and rows, in the end I copied it - but am still not sure if it's really neccessary.
The long patches of coding could've done well with some more debugging/testing to give more of a feeling of incremental progress.

However, the series had a good pace to follow along.
I think the implementation needs some improvements on the solver front, instead of starting completly blank again and again, but it's still a great start.

Great work. :)

NoArtistAvailable
Автор

Hey Peter! Is this algorithm good on performance for mobile phones? I am thinking of using this to generate levels but this will happen quite often at runtime for an endless runner game

xaxababa
Автор

Hello ! How do you delete the tilemap it generates?!

brettrogers
visit shbcf.ru