/FDF

In this project you will discover the basics of graphic programming, and in particular how to place points in space, how to join them with segments and most importantly how to observe the scene from a particular viewpoint. You will also discover your first graphic library: miniLibX. This library was developed internally and includes the minimum necessary to open a window, light a pixel and deal with events linked to this window: keyboard and mouse. This project introduces you to “events” programming. Don’t forget to watch the e-learning videos

Primary LanguageC

FDF

A simple 3D height-map renderer. You can rotate models, color is defined by relative height in the map. More features planned!

screenshot

Features

  • Simple file format definition (array of space-separated integers)
  • 3D rotations with the mouse
  • Camera controls (zoom, translate)
  • Pretty color gradients!
  • Double-buffered
  • Line clipping

Compiling and running

Run make. An executable will compile. Currently only tested on OS X.

Run it with ./fdf [map]. A bunch of sample maps are provided in the maps directory. The one in the screenshot above is maps/42.fdf.

Controls are: drag with left click to rotate, drag with right to zoom, drag with both to move around.