Giter VIP home page Giter VIP logo

fdf's Introduction

This is a 21 School/Ecole 42 Project

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

To compile and run

Run the following commands in Terminal:

# to build
> make

# to run
> ./fdf test_maps/pentenegpos.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 [1] & [2] to rotate on x-axis

Use [3] & [4] to rotate on y-axis

Use [5] & [6] to rotate on z-axis

Press [↑] to move upwards

Press [↓] to move downwards

Press [←] to move left

Press [→] to move right

Reneder examples

42 map Coloured map Map Closer Closest

fdf's People

Contributors

rarakira avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.