Skip to content

dgaitsgo/fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdf

A quirky wireframe software renderer

Motivation

fdf is the introductory graphics project in the 42 curriculum.

The basic requirement is to load a file who's format is as follows:

0 0 10 10 0
0 0 10 10 0

That makes a wireframe and the number is the elevation where the wire's intersect. This fdf also supports rudimentary wavefront obj files, rendered as quads. There are a variety of controls to make rendering more interesting. But why quirky? Well, triangles do not have colors smoothly interpolated across their face. Rather, you have a blend of colors mimicking, a poorly calibrated thermal camera, based on the orientation of the object.

Compatability

Tested on Mac 10.9.5 - 10.10.5

Getting started

$> make
$> ./fdf ./example.fdf

Keyboard Commands

Transformation

Rotation

- +x

- +y

+z

Translation

T - +X

G - -X

Y - +Y

H - -Y

U - +Z (The camera is looking down the positive Z axis)

J - -Z

Scale

Q - +X

A - -X

W - +Y

S - -Y

E - +Z

D - -Z

Colors

Let it rip on the 1 through 9 to shift the colors.