Spherical Harmonics Lit, Supersampled

Thanks to some invaluable assistance from Memo, who sacrificed valuable time off work to help, I finally have a version of the Spherical Harmonics shader that has working lighting (a simple Phong Directional model).

I’ve mixed the previous simple shading with the lighting, in an attempt to make it look like it’s glowing from within. Doesn’t quite work, but looks more intriguing than the lighting on its own.

Spherical Harmonics Lit 01Spherical Harmonics Lit 02
Spherical Harmonics Lit 03Spherical Harmonics Lit 04
Spherical Harmonics Lit 05Spherical Harmonics Lit 06

This formula is great at producing organic, sometimes vaguely obscene-looking (or maybe that’s just me) forms. It’s quite similar to the Superformula really. I’m sure the two share a common origin. They’re certainly both capable of mimicking a variety of natural forms, as well as producing lots of annatural ones.

This implementation still has a few little glitches. The sides of the mesh don’t quite join up correctly. Neither Memo or I are quite sure how to fix that, though I’ve been considering the idea of attempting to use a sphere rather than a plane as the initial mesh. I’m not sure how this would work at the moment, though.
The other problem is, with the lighting and supersampling added, it’s all got a bit slow, predictably. Not sure if I can do anything about that, really…

2 Responses to “Spherical Harmonics Lit, Supersampled”

  1. 1 hob
    March 18, 2008 at 1:15 pm

    are these objects being generated randomly, or are they reacting to audio input or something similar?

  2. 2 toneburst
    March 18, 2008 at 1:47 pm

    It’s being generated from a formula, based on eight main tweakable controls, and four controls to pre-transform the grid before the mesh distortion (this causes only part of the complete form to be drawn- you can see the effect in screenshots 4, 5 and 6).

    There’s no reason why you couldn’t hook up the controls to audio level in VDMX and make it respond to music that way. I have a feeling this one wouldn’t be terribly responsive though, as it runs at a fairly slow frame-rate, on my machine, at least.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


  • Waiting in the queue to see Art of Noise at the British Library. 1 week ago
March 2008
« Feb   Apr »


Blog Stats

  • 479,405 hits

%d bloggers like this: