Dev Thoughts

Thoughts and inspirations from a software developer.

Old Fractal Application

without comments

This is the first Fractal generator application that I wrote that had a GUI frontent. I used it to learn the WTL library and how to compute Fractals. To be honest the code is heavily underdocumented and the design could stand a lot of improvement, but it works reasonably well and the interface is not horrible.

I started developing this tool while at University after a friend of mine showed me a program he had developed in Java. So feeling motivated I hacked up a simple version in C in about 5 minutes, but spent the next half hour trying to display the image that it generated. I did some research that night and started writing this program.

My initial goal of this application was to create a framework for generating a wide variety of fractals. So I made it use a plugin architecture, and tried to make the interface as responsive and flexible as possible. The fractals are generated on a separate thread so the user interface is still responsive, and the application can be controlled using the mouse or by typing in values in the fields. The only real issue with this application is that I’m just using doubles (64 bit floating point) to perform the computation, so you can’t zoom in too far otherwise the output results become weird.

However all work on this application has ceased and I’m making available the application and source code here for anybody that wants it. I’m releasing the source code into the public domain so people can learn from it (my mistakes mainly). In the future I might write another fractal generation program, with a nicer architecture and using some form of SIMD/GPU acceleration and maybe arbitrary length arithmetic too.

Written by Dominik Grabiec

December 12th, 2008 at 3:25 pm

Posted in Uncategorized