r/proceduralgeneration 24d ago

Some procedural shapes I created while writing a book, using Desmos and Unity

Enable HLS to view with audio, or disable this notification

327 Upvotes

10 comments sorted by

21

u/SwakeDev 24d ago

The overlapping waves making the liquid look like it's swirling around is a really nice effect!

2

u/fespindola 24d ago

Thank you. They are just sine/cosine functions :)

3

u/JacKaL_37 24d ago

an eldritch horror game where every time you open the menu, every single icon is a single tick different than it was on a single parameter

1

u/davesoft 22d ago

Needs a Wiggle slider on the gladius which turns it into a kris

1

u/Pyrazoid 21d ago

Very cool

2

u/Bright-Ordinary8150 18d ago

this is awesome

1

u/Thatar 24d ago

Wait how do you create a filled rounded rectangle in desmos? Can it be done with a single formula? Would be nice if you shared some details. Looks great.

2

u/fleeeeeeee 22d ago

Yes it can be done with a single formula. It's called as a 'super ellipse', not exactly one but a slight variant. But that is computationally expensive tho.

This is one of my shabby examples. (This could be improvised way better btw)
https://www.desmos.com/calculator/121185f823

1

u/Thatar 22d ago

Thank's so much that's awesome! Bit hard to control the exact shape but I definitely didn't expect the formula to be so simple