Author Topic: Sphere deformation  (Read 4710 times)

0 Members and 1 Guest are viewing this topic.

Offline azerty

  • ZX 81
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Sphere deformation
« 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!

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Sphere deformation
« Reply #1 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 ?
The demoscene will never die, never!

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Sphere deformation
« Reply #2 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:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: Sphere deformation
« Reply #3 on: September 25, 2011 »
Oh ! Welcome on the forum of course :)
The demoscene will never die, never!

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2750
  • Karma: 493
    • View Profile
    • http://www.rbraz.com/
Re: Sphere deformation
« Reply #4 on: September 25, 2011 »
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:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Sphere deformation
« Reply #5 on: September 26, 2011 »
ALso you should look into Super Shapes created using the Super Formula its very robust and easy to understand

Challenge Trophies Won:

Offline azerty

  • ZX 81
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Sphere deformation
« Reply #6 on: September 26, 2011 »
Hi,

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

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: Sphere deformation
« Reply #7 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

Challenge Trophies Won: