Superformula Lighting

toneburst's picture

QC/GLSL Version of the VVVV Superformula by gregsn, sanch and tonfilm, based on original work by Johan Geilis.

I've added a couple of different lighting/surface models, from my surface shaders library. The three surface option are versions of 'Glossy Wet Hilight' and 'Thin Film' from the NVIDIA shader library, and an adapted version of the 'Env Map' example shader from Apple.

  • Requires Kineme Spooky and SuperGLSLGrid patches.
PreviewAttachmentSize
tb_Superformula_Surfaces_0.5.qtz281.98 KB
glossySF_01.jpg
glossySF_01.jpg22.16 KB
oilySF_03.jpg
oilySF_03.jpg18.71 KB
shinySF_02.jpg
shinySF_02.jpg26.67 KB

cwright's picture
Nice

This is really cool :) Thanks for sharing it -- it even works on my MacBook :) (without catching on fire or exploding or anything :)

Looks like if M or Mb is 0, the texturing no longer works though...

toneburst's picture
Cheers! I've just set the

Cheers! I've just set the ranges of all the Superformula controls to 0>10, since this was really just a little test project, anyway. There are some glitches with the normals too, I noticed, but I'm going to leave those for the moment and knock together a version with simple phong lighting, and some SuperGLSL 'pseudospreads' type action, I think.

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net

franz's picture
thx

thanks for sharing. around 15-20 fps on a MBP-X1600 as far as i remember, the vvvv version runs around 20+ on my Bootcamp , so it seems quite the same.

awesome work !

toneburst's picture
Cheers franz! I think the

Cheers franz!

I think the lighting slows things down quite a lot, especially as, to get a smooth shape, you need to have quite a high-res mesh.

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net