This media is not supported in your browser
VIEW IN TELEGRAM
Wanted to show a trippy visual effect I created by accident (Imgur link: https://imgur.com/a/uy52rCt).
https://redd.it/12ejsh2
@proceduralgeneration
https://redd.it/12ejsh2
@proceduralgeneration
This media is not supported in your browser
VIEW IN TELEGRAM
Simulating Norwegian mountains with a single sine curve!
https://redd.it/12etrbi
@proceduralgeneration
https://redd.it/12etrbi
@proceduralgeneration
Progress on my procedural island generation with realistic rivers. Want it on Github?
https://imgur.com/a/ZQvgUBc
https://redd.it/12f0jo4
@proceduralgeneration
https://imgur.com/a/ZQvgUBc
https://redd.it/12f0jo4
@proceduralgeneration
Imgur
Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.
Media is too big
VIEW IN TELEGRAM
New song "So Come On" generated by my TuneStar computer program
https://redd.it/12ezihl
@proceduralgeneration
https://redd.it/12ezihl
@proceduralgeneration
Problems with river formation and erosion/deposition using an Eulerian frame: Is it just a matter of fine-tuning a bunch of constants until I get it right?
I have been experimenting with river formation and erosion using three different approaches, two Eulerian ones and a (pseudo-)Lagrangian one. I am using the two terms slightly incorrectly from the physics point of view, so let me elaborate:
By "(pseudo-)Lagrangian" I mean something like the approach of [RanmanTaru's Water Erosion on Heightmap Terrain](http://ranmantaru.com/blog/2011/10/08/water-erosion-on-heightmap-terrain/). I start with a single raindrop on a random location, and then follow that raindrop downhill calculating sediment erosion and deposition until it disappears (by reaching the sea or the edge of the map or dying at a local minimum and deposing all the sediment it has). Stir and repeat. This works fine and is relatively efficient, but it does not account correctly for the interaction between raindrops dropped at different places on the map: No lake formation, and evaporation is unrealistic.
In the Eulerian approach, I did something like the first approach in Dandrino's "Terrain Erosion Three Ways". The algorithm is a loop of:
1. Precipitation (everywhere on the map using a climate model that gives me a rainfall map).
2. Flow downhill one cell/step according to one of two methods, (a) and (b) below.
3. Erosion/deposition.
4. Evaporation.
5. Back to (1).
I am encountering difficulties particularly on step (2). I have tried two approaches to determine where water will flow to:
(a) Determine flow direction using terrain elevation only. Water will flow downhill regardless of how much water is already present in the downhill direction. In most cases I get decent river formation. However, I have unreasonable amounts of water pooling in local minima until erosion/deposition smooths minima out, which can take a long time. Even after local minima are taken care of, I cannot obtain lakes.
(b) Determine flow direction using terrain elevation + water depth: Water depth in the adjacent location will be taken into account, and water will flow in the direction that has the lowest total water level. This is the more realistic approach, since water will not pool at a single location and it will form lakes where necessary... But I do not really obtain rivers, just huge lakes that slowly flow downhill with very little or no erosion or deposition and little to no sign of proper rivers forming.
Is making (b) work just a matter of fine-tuning a half dozen or more equations and constants, like
----
Edit: I guess my fundamental underlying question is, I cannot find a simulation approach that naturally creates both rivers and lakes. It seems everything I try is only able to create one or the other.
https://redd.it/12fijpd
@proceduralgeneration
I have been experimenting with river formation and erosion using three different approaches, two Eulerian ones and a (pseudo-)Lagrangian one. I am using the two terms slightly incorrectly from the physics point of view, so let me elaborate:
By "(pseudo-)Lagrangian" I mean something like the approach of [RanmanTaru's Water Erosion on Heightmap Terrain](http://ranmantaru.com/blog/2011/10/08/water-erosion-on-heightmap-terrain/). I start with a single raindrop on a random location, and then follow that raindrop downhill calculating sediment erosion and deposition until it disappears (by reaching the sea or the edge of the map or dying at a local minimum and deposing all the sediment it has). Stir and repeat. This works fine and is relatively efficient, but it does not account correctly for the interaction between raindrops dropped at different places on the map: No lake formation, and evaporation is unrealistic.
In the Eulerian approach, I did something like the first approach in Dandrino's "Terrain Erosion Three Ways". The algorithm is a loop of:
1. Precipitation (everywhere on the map using a climate model that gives me a rainfall map).
2. Flow downhill one cell/step according to one of two methods, (a) and (b) below.
3. Erosion/deposition.
4. Evaporation.
5. Back to (1).
I am encountering difficulties particularly on step (2). I have tried two approaches to determine where water will flow to:
(a) Determine flow direction using terrain elevation only. Water will flow downhill regardless of how much water is already present in the downhill direction. In most cases I get decent river formation. However, I have unreasonable amounts of water pooling in local minima until erosion/deposition smooths minima out, which can take a long time. Even after local minima are taken care of, I cannot obtain lakes.
(b) Determine flow direction using terrain elevation + water depth: Water depth in the adjacent location will be taken into account, and water will flow in the direction that has the lowest total water level. This is the more realistic approach, since water will not pool at a single location and it will form lakes where necessary... But I do not really obtain rivers, just huge lakes that slowly flow downhill with very little or no erosion or deposition and little to no sign of proper rivers forming.
Is making (b) work just a matter of fine-tuning a half dozen or more equations and constants, like
waterDepthElevationRatio, depositionRate, erosionRate, minSlopeForSedimentCapacity, and so on? Or is there something fundamental I am missing?----
Edit: I guess my fundamental underlying question is, I cannot find a simulation approach that naturally creates both rivers and lakes. It seems everything I try is only able to create one or the other.
https://redd.it/12fijpd
@proceduralgeneration
Media is too big
VIEW IN TELEGRAM
New song "So Come On" generated by my TuneStar computer program
https://redd.it/12fm6gp
@proceduralgeneration
https://redd.it/12fm6gp
@proceduralgeneration
This media is not supported in your browser
VIEW IN TELEGRAM
Connected a csv file to a bar graph in blender using python and geometry nodes
https://redd.it/12fq2ki
@proceduralgeneration
https://redd.it/12fq2ki
@proceduralgeneration
Media is too big
VIEW IN TELEGRAM
New 80's sounding song generated by my TuneStar program. Not Bad Bunny. Please give improvement feedback if you don't like.
https://redd.it/12frawe
@proceduralgeneration
https://redd.it/12frawe
@proceduralgeneration
How to generate random 2D dungeon array? (Javascript/Phaser)
I am trying to generate a 2D dungeon array where char=1 is walls and char=0 is the floor. Im not sure how to implement code that will do this though. Are there any good tutorials on this or sample code I can look at?
(Im using phaser for the second time and im not sure how to do this)
https://redd.it/12fyq05
@proceduralgeneration
I am trying to generate a 2D dungeon array where char=1 is walls and char=0 is the floor. Im not sure how to implement code that will do this though. Are there any good tutorials on this or sample code I can look at?
(Im using phaser for the second time and im not sure how to do this)
https://redd.it/12fyq05
@proceduralgeneration
Reddit
r/proceduralgeneration on Reddit: How to generate random 2D dungeon array? (Javascript/Phaser)
Posted by u/Personal_Fan4935 - No votes and no comments
Just finished a JavaScript implementation of the Wave Function Collapse algorithm
The repo is here: https://github.com/Arkyris/blazinwfc
And a live sample is here: https://codepen.io/Arkyris/pen/zYmxmWv
https://preview.redd.it/gze1ckyagssa1.png?width=1932&format=png&auto=webp&v=enabled&s=09a94787101d12f97aa5fc3815423402d6424479
https://redd.it/12g91qf
@proceduralgeneration
The repo is here: https://github.com/Arkyris/blazinwfc
And a live sample is here: https://codepen.io/Arkyris/pen/zYmxmWv
https://preview.redd.it/gze1ckyagssa1.png?width=1932&format=png&auto=webp&v=enabled&s=09a94787101d12f97aa5fc3815423402d6424479
https://redd.it/12g91qf
@proceduralgeneration
GitHub
GitHub - Arkyris/blazinwfc
Contribute to Arkyris/blazinwfc development by creating an account on GitHub.