shan-shui-inf
shan-shui-inf copied to clipboard
could you please elaborate how it's work and which algorithms used
Hi nvcken,
Thanks for the question. Each element in the landscape is modelled using different rules, so it is hard to explain in a few sentences. But basically I use a combination of functions (sinusoidal waves, Gaussian distribution, etc.) and randomness (Perlin noises, uniform, etc.). Is there any particular element (rock, tree, etc.) you’re interested in?
P.S. I’m planning to write a documentation detailing each step, I’ll link to it in this repo once I finish it.
this project is awesome, I want to know the principle too
What if I can draw it in JavaScript via the technique metioned here. Just wait for your documentation around how to creating tree, rock, and moutains.
我也想知道各个元素是怎么提取建模的!
It would be cool if someone can port the code to generate non-stop scrolling desktop/phone wallpaper and/or screensavers! Nice work! Looking forward to the write-up.
P.S. I’m planning to write a documentation detailing each step, I’ll link to it in this repo once I finish it.
Can't wait to read this document!
I have rewritten this project in react with typescript. maybe it will help to understand.
Hi guys, time has passed and the documentation hasn't been created, so I made it myself.
Make a note that the code has been modernized, and most of the names have been changed for better readability.