
Hi, here are some Mac examples of the various things described on the excellent The good-looking textured light-sourced bouncy fun smart and stretchy page. If you haven't seen it before, that page describes a number of graphic and physical algorithms, in English psuedo code that is very easy to follow along with. I've been following along with the page for a while now, and have done a few of the examples. All of the following is for PPC only, I'm afraid. I've tried to keep the programs organised the same way the examples are, that way you'll hopefully be able see how the source and the psuedo code relate. Most of the programs require the Appearance Manager. The source is now available for the Starfield examples, but not for the String, Fire or Ripples. Lastly, I'd just like to mention that I am in no way associated with The good-looking textured light-sourced bouncy fun smart and stretchy page, except as a reader.
If you would like to get in contact with me for any reason, my email address is jomeder@xtra.co.nz.
2D Effects
  Ripples
This is the Ripples program, described in the Water section of Hugo's site. It looks like rain falling in a rock pool, more or less :-). It implements simple shading and refraction. It's really quite restful to watch, although after a while it creeps me out because it doesn't make any droplet sounds. I still haven't decided whether to release the source, for a number of reasons.
Download Ripples.
Strings, Cloths and Gels
![]()
String
Here's the String program. It doesn't actually work exactly like string, more like elastic. The source isn't yet available, I need to clean it up a bit. You will need a monitor capable of a resolution of 1024 x 768 for this to run properly, the window is rather large. Hopefully I'll get around to changing this someday.
Download String.
Starfields
New and Improved ! Examples now work better, and the source is available for all examples.
![]()
Starfield 1
This is the first of the starfield examples. The stars basically shoot from the centre of the screen at the same angles, and are simply white pixels. This requires the Appearance Manager. The source code, in C, is included.
Download Starfield 1.
![]()
Starfield 2
This is the second of the starfield examples. The stars are a lot more random in this one, however the stars are still white pixels and there is no sense of depth. Consequently it just looks like a whole lot of stars shooting wildly about the screen. This requires the Appearance Manager. The source code, in C, is included.
Download Starfield 2
![]()
Starfield 3
This is the third of the starfield examples. In this the one ths stars are treated as 3d points in space, and have a shade of grey assigned to them depending on their distance away. Things are starting to look a lot better. This requires the Appearance Manager. The source code, in C, is included.
Download Starfield 3.
![]()
  Starfield 4
This is the fourth of the starfield examples. This is much the same as the previous one, except the stars now have a random velocity assigned to them. This requires the Appearance Manager. The source code, in C, is included.
Download Starfield 4.
  Download all the Starfields
You can now download all the starfields, including all the source code, in one fell swoop.
Download all the Starfields.
Earth, wind and fire
![]()
Fire
This is program is based on the fire algorithm. It is pretty much exactly the same except that it doesn't use a cooling map, though there is an alternative, and it uses millions of colours rather than 256. The fire is fully configurable. There are three different versions, each optimised for a different processor.This requires the Appearance Manager. The source isn't yet available, I need to clean it up a bit.
Download Fire.
![]()