Giter VIP home page Giter VIP logo

42-fdf's Introduction

⚙️ fdf (a 42 project) ⚙️

📑 Introduction

School 42's fdf project challenges students to build a wireframe model representing a landscape as a 3D object in which all surfaces are delimited by lines. For doing so, we are asked to use the school's graphics library minilibx. This library was developed internally and includes basic necessary tools to open a window, create images and deal with keyboard and mouse events.
This project is the opportunity for us to learn the basics of graphics programming, especially how to open a window, place points in space, draw lines and represent 3D objects. This project is a excellent introduction to the future 42-minirt project, where we'll be creating a 3D light engine.

Subject : en.fdf_subject.pdf

My grade

nsalles's 42 FdF Score

Usage

Download fdf and enter the repo :

git clone https://github.com/Floperatok/42-fdf.git && cd 42-fdf

For linux users, you will need to install the following packages :

sudo apt-get update && sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev

For Mac and Windows user you can refer to the unofficial minilibx doc and modify the Makefile.

Init and update the submodules :

git submodule init && git submodule update

Compile the project :

make && make clean

The project is now ready to be launched, fdf needs a map to read and display. 42 gives us a few maps to try out the project, they can be found in the maps folder.
You can now run fdf :

./fdf maps/42.fdf

A black window with a rotating red 42 wireframe should appear. There are several controls you can use to interact with the wireframe.

Key Effect
w Rotation up x axis
s Rotation down x axis
a Rotation left y axis
d Rotation right y axis
q Clockwise rotation
e Anti-Clockwise rotation
tab Enable/Disable auto rotation
space Reset rotation
up arrow Move up
down arrow Move down
left arrow Move left
right arrow Move right
+ Zoom in
- Zoom out
* Extract
/ Press
t Increase line thickness
r Decrease line thickness
p Change maths

Enjoy !

42-fdf's People

Contributors

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