/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.

Primary LanguageC

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.

It includes

  • Realization a Bresenham's line algorithm drawing
  • Isometric projection of a grid
  • Rotation of an object around x, y, z axis
  • Scaling a grid

How to compile: gcc *.c -lmlx -lXext -lX11 -L ./libmlx/ -I ./libmlx/ -lm

This project is about creating a simplified graphic “wireframe” (“fils de fer” in french, hence the name of the project) representation of a relief landscape linking various points (x, y, z) via segments. The coordinates of this landscape are stored in a file passed as a parameter to your program. Here is an example:

file_example

Each number corresponds to a point in space:

  • The horizontal position corresponds to its axis.
  • The vertical position corresponds to its ordinate.
  • The value corresponds to its altitude.

Examples of execution:

42

pylone

mars