• Welcome to Dark Bit Factory & Gravity.
 

Sphere deformation

Started by azerty, September 25, 2011

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

azerty

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!

LittleWhite

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 ?
The demoscene will never die, never!

Shockwave

Quote from: LittleWhite on September 25, 2011
What do you mean about sphere deformation ?

Do you mean the marching cubes method?

And welcome to the forum :)
Shockwave ^ Codigos
Challenge Trophies Won:

LittleWhite

Oh ! Welcome on the forum of course :)
The demoscene will never die, never!

Rbz

Take a look at Relsoft's "hematoma.zip" source that he kindly showed here, it uses Freebasic + Opengl.

It's based on spherical coordinates formula.
Challenge Trophies Won:

rain_storm

ALso you should look into Super Shapes created using the Super Formula its very robust and easy to understand

Challenge Trophies Won:

azerty

Hi,

Thank you for the links, this is exactly what I was searching for...

relsoft

Speaking of supershapes and super formula, here's a morpher I made with the formulae:

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

Challenge Trophies Won: