/metamorphosis

A simple implementation of the Bresenham algorithm for primitive line/circle drawing using OpenGL 3.3.

Primary LanguageCMake

Metamorphosis

So there's this thing called the Bresenham algorithm for rasterization. We came up with an idea for a short story/film(?) and tried using this algorithm to render a few frames from it. This is how it turned out.

Find the summary, storyboard and code documentation here.

Build Instructions

Build using CMake. For more details, see BUILDING.md.

git clone git@github.com:the-hyp0cr1t3/metamorphosis.git
cd metamorphosis

# Build
mkdir build
cd build
cmake ..
make

# Install
sudo make install

Usage

The render executable takes a series of set color, add line, add circle, add ellipse and fill inputs and renders a frame. See frames for more details on the input format. All of this is done of course using the Bresenham library, that goes pixel-by-pixel determining which ones to color.

foo@bar:~$ render [input_file]