Hi!

OK, there is my scanline-algorithm. It was designed in the early days of
GKS. That's why it can handle convex and concave polygons. It incorporates
some shading-techniques like Gouraud, Phong, flat, improved Gouraud ...
You can control it using the command-line-options.

It was not designed for speed! We needed such a program for educational
purposes. I think many parts of the program can be improved.

Don't blame me for the german comment-lines. I didn't have the time for
translations yet.

Installation
------------

I've compiled it with gcc, but I think it must go with other compilers, too.
Type simply:

    $ gcc -O2 -o scanline scanline.c -lm

and

    $ gcc -O2 -o show show.c -lX11 -lm

Usage
-----

The "scanline"-program reads NFF-Files and produces PIC-Files (not a known
format). The pictures are 24-bit ones. The first byte of the PIC-File is
the width / 10, the second byte the height / 10 and the third byte can be
ignored. The next bytes are the RGB-values of each pixel in a linewise
order. The picture can be shown with the "show"-program. It performs a
octree-quantification.

To process a scene type simply:

    $ scanline scene.nff scene.pic -c -s
    $ show scene.pic

or
   
    $ cat scene.nff | scanline -z -c -s | show -z -c&

             
 
Have fun and many coloured pictures!

                  Greetings
                             Matthias


----------------------------------------------------------------------------
|  Matthias Boldt		   					   |
|  Institute for Computer Graphics,  University Rostock, Germany	   |
|  boldt@informatik.uni-rostock.de 					   |
----------------------------------------------------------------------------
| "The whole world is in a great big hurry, I think it's time to slow down |
|  Gonna buy myself a little farm, yes, out on the outskirts of town       |
|  I wanna take it easy, me and my wife we gonna settle down               |
|  And we just gonna take our time, trying to find some peace of mind      |
|  I just wanna live my life, baby, one day, at a time."                   |
|                       Eddy Clearwater in "One Day At A Time"             |
----------------------------------------------------------------------------



