Skip to content

This project is about representing a landscape as a 3D object in which all surfaces are outlined in lines.

Notifications You must be signed in to change notification settings

AgvanGrigoryan/FdF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fdf

Fdf is a program that creates simplified 3D graphic representation of a relief landscape using MiniLibX library. Subject can be found here.

FDF is short for ’fil de fer’ in French which means ’wireframe model’.

Project goals

  • Create a basic computer graphics project
  • Learn about mapping
  • Drawing lines in 3D using maths
  • Implement axis rotation, zoom and transmittion

Map Rotation

Motion_effect.mov

To compile and run

Run the following commands in Terminal:

# to build
> make

# to run
> ./fdf test_maps/julia.fdf

The program accepts a map in .fdf file as argument. Those files can be found at test_maps/ folder. Those include lines of numbers separated by spaces (sometimes with HEX colour codes) representing height of the points on map.

To close window press esc.

Scene control

Use [+] & [-] to zoom in and out

Use [a] & [d] to rotate on x-axis

Use [s] & [w] to rotate on y-axis

Use [scroll up] & [scroll down] to rotate on z-axis

Press [↑] to move upwards

Press [↓] to move downwards

Press [←] to move left

Press [→] to move right

Additionally, you can control the scene using the buttons on the screen

Screen Shot 2024-03-24 at 4 52 39 PM

Render examples

Screen Shot 2024-03-23 at 11 07 14 AM Screen Shot 2024-03-23 at 11 17 07 AM Screen Shot 2024-03-24 at 5 09 25 PM Screen Shot 2024-03-24 at 5 05 00 PM Screen Shot 2024-03-24 at 5 03 45 PM

About

This project is about representing a landscape as a 3D object in which all surfaces are outlined in lines.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published