Dark Bit Factory & Gravity
PROGRAMMING => General coding questions => Topic started by: azerty on September 25, 2011
-
Hi!
I'm new to the forum.... My first question is about sphere deformation. How does it work?
I'm working in C/C++ with OpenGL 2.0 and I know GLSL. Pseudo-code and formulas are good too.
Thanks for any info!
-
What do you mean about sphere deformation ?
Do you think about metaballs (look at wikipedia page so).
Or just deformation caused by a Scale Matrix ?
-
What do you mean about sphere deformation ?
Do you mean the marching cubes method?
And welcome to the forum :)
-
Oh ! Welcome on the forum of course :)
-
Take a look at Relsoft's "hematoma.zip" source that he kindly showed here (http://rel.phatcode.net/junk.php?id=55), it uses Freebasic + Opengl.
It's based on spherical coordinates (http://www.math.montana.edu/frankw/ccp/multiworld/multipleIVP/spherical/learn.htm) formula.
-
ALso you should look into Super Shapes (http://paulbourke.net/geometry/supershape3d/) created using the Super Formula (http://en.wikipedia.org/wiki/Superformula) its very robust and easy to understand
-
Hi,
Thank you for the links, this is exactly what I was searching for...
-
Speaking of supershapes and super formula, here's a morpher I made with the formulae:
http://rel.phatcode.net/junk.php?id=61