Dark Bit Factory & Gravity

PROGRAMMING => General coding questions => Topic started by: azerty on September 25, 2011

Title: Sphere deformation
Post 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!
Title: Re: Sphere deformation
Post by: LittleWhite on September 25, 2011
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 ?
Title: Re: Sphere deformation
Post by: Shockwave on September 25, 2011
What do you mean about sphere deformation ?

Do you mean the marching cubes method?

And welcome to the forum :)
Title: Re: Sphere deformation
Post by: LittleWhite on September 25, 2011
Oh ! Welcome on the forum of course :)
Title: Re: Sphere deformation
Post by: Rbz on September 25, 2011
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.
Title: Re: Sphere deformation
Post by: rain_storm on September 26, 2011
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
Title: Re: Sphere deformation
Post by: azerty on September 26, 2011
Hi,

Thank you for the links, this is exactly what I was searching for...
Title: Re: Sphere deformation
Post by: relsoft on September 30, 2011
Speaking of supershapes and super formula, here's a morpher I made with the formulae:

http://rel.phatcode.net/junk.php?id=61