r/GraphicsProgramming • u/[deleted] • Apr 07 '21
I tried making a squishy sphere simulation in OpenGL but something went wrong and I invented a new geometrical entity again.
4
Apr 07 '21
If anyone's interested, I'm trying to connect vertices by "springs" and update each frame with Euler method.
2
4
u/CodyDuncan1260 Apr 07 '21 edited Apr 07 '21
*stares carefully at post*This is awfully close to only showing the render and not talking about how it's programmed and works / supposed to work. This is borderline violation of Rule 1. I might have to remove this.
Pinging u/tirolskiypirog7. To get this up-to-code with Rule 1, How is the squishy supposed to work?
2
Apr 08 '21
You're just jealous because you don't have a cool sphere!
On a serious note, I connected vertices in each triangle with a spring and ran a simulation updating Lagrange equations with forward Euler. The shader is just outputting UVs as color.
3
6
2
11
u/PastaThis Apr 07 '21
Maybe your index to the vertices are wrong. Did you get a sphere rendering first?