All this talk of Mandelbrot sets prompted me to write a Julia Set morph using my OpenCL framework. Here's how to try it out in a 4.1 image...
First, load the code:
Installer squeak project: 'FFI'; install: 'FFI-Pools'; install: 'FFI-Kernel'. Installer ss project: 'OpenCL'; install: 'OpenCL'.
Once the code has loaded, evaluate: OpenCLJuliaSetMorph new openInHand
You can move through the parameter-space by changing the "real" and "imaginary" components. These are exposed to eToys. I recommend hooking them up to a JoystickMorph. I've attached a screen-shot of the script that I use. The division by 40 is so that I can resize the JoystickMorph to be larger, and thereby move more precisely through the parameter space.
This has been tested on 2 machines: a Win7 box with Nvidia 8800GTS and the latest drivers, and a MacBook Pro with 8600GT running OSX 10.6. Your mileage may vary. If it does, I'd like to hear about it.
BTW, the performance would be much higher if I displayed it using OpenGL instead of reading back into a Squeak Form and displaying using BitBlt. My laptop GPU does the computation (including readback) for a 512x512 in about 5ms; it wouldn't be a problem to render at 200fps with OpenGL.
Cheers, Josh
On Apr 26, 2010, at 2:02 PM, Lawson English wrote:
Lawson English wrote:
Hannes Hirzel wrote:
On 4/26/10, Lawson English lenglish5@cox.net wrote:
Randal L. Schwartz wrote: I think that you meant to direct that at me...
/me looks sheepish.
Lawson
Please don't worry, just go ahead and work on a nice Mandelbrot morph. We need something like that for screenshots of Squeak.
Then Ian pointed out that we need a good screen shot and referred to an example on his blog (which actually shows that the current situation needs improvement ASAP)
http://mecenia.blogspot.com/2010/04/history-of-squeak-in-pictures.html
--Hannes
Levente has already done one. I'm trying to figure out how his works with an eye to make one that is etoy-enabled as a prelude to a "simple" [SIC] OGLMorph etoy thingie
http://squeaksource.com/MandelMorph2.html
Lawson
ah, that was Bob Arnings, as repackaged by Torsten Bergmann.
:-)
Lawson