Constructing Fractal Objects Using an IFS
README FILE
 
1-- Files included in the zip file
   a)ifs.c --> source code
   b)Makefile --> just type make all (If you have Mesa 3.0, you'll need to change the makefile)
   c)ifs.conf    --> configuration file . This stores all the IFS Code file that will be loaded when you start the program.
   d)A bunch of maps --> these are the IFS Code files.
 

2-- Using the program.

The program is very simple. By right-clicking , a menu will pop-up. The following items will be shown:

   i) Iterator Control : This controls how much iterations you want the algorithm to perform.
   ii)Load an IFS Code : You should have a pre-defined list of IFS Code to choose from
   iii)Print Statistics : This add a bunch of information about the current picture to a file called ifs.log
   iv) Zoom : As you guessed it, let's you zoom and control the zoom precision.
                   When you have pressed the zoom button, you can zoom in and out by moving the mouse with the left-button pressed.
   v) Move :  Works in the same way as zooming.
   vi) Start animation : the camera will rotate around the y-axis. Useful for viewing 3-D pictures.
   vii) Stop animation : the camera will stop rotating.
   viii) Quit program :  hmmmm... what could that be for??
 
 

3-- The ifs.conf file

If you want to build your own IFS Code file, you first need to specify the maps in a file. The format for a map is : a;b;c;d;e;f;p;r;g;b
where the matrix A = [a,b,c,d] , the translation vector v=[e;f] the probability of the map = p , and the map's rgb values = r,g,b

After this is done, add to the ifs.conf file:  1) the name of you IFS Code file,
                                                               2) The scale factor of the image (e.g scaleFactor=0.5)
                                                               3) The number of iterations you  (e.g iterations=26000) want the algorithm to do.

4-- The ifs.log file

Rather than talking about the format of the file: run the program , and take some statistics for a picture. Then open the file ifs.log and see for yourself.
 

5-- Questions
If you have any question : email at ndutil@pobox.cs.mcgill.ca
 
 

Go back to the front page