u/thattiguy

▲ 30 r/desmos

Gerstner Waves in 3D

https://www.desmos.com/3d/dhtquctsac

Took some doing, and doesn't exactly run too well at higher resolutions. However I think it turned out really well.

The foam I did by running a 2nd derivative estimation on the z position of the transformed mesh points.

I think the boat is probably my favorite part of this whole graph tbh.

u/thattiguy — 1 day ago
▲ 8 r/desmos

Is something wrong with my simplex noise here?

I am trying to make my own simplex noise library, so I started with this. It looks right, in that I think it looks approximately like what I'm expecting, but certain parts seem to me like I might have screwed my math up (like the low dots forming in a line).

Since this is me figuring out simplex noise for myself, I currently don't know enough to know if I've gone astray. Does anyone else mind taking a gander, and double checking it for me?

https://www.desmos.com/calculator/vyrxcgdagt

Note that there are certain parts of this graph which will only show up when you change the point t_est to be a single point instead of just (x,y).

u/thattiguy — 7 days ago

Testing out an algorithm I thought of to create procedural rivers.

The goal was to create a river generator which would not only create a river from point A to B which looked good, but also do river things, like create tributaries. I also wanted it to somewhat try and follow the shape of the terrain (i.e. prefer to flow in valleys, not flow up mountains) with ought doing an expensive erosion sim.

The algorithm actually ended up working better than I thought of, and I will probably end up working this into some 3D games later. But wanted to show off the result for the time being.

This method is also insanely fast. Most of the delay you see while running is entirely intentional. Removing things like rendering, and debug pauses makes the river generation essentially instant (.03 seconds), which is crazy given that the code is currently super un-optimized and running in python.

u/thattiguy — 23 days ago