Skip to content

app-gitKaiwho/Fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fdf

Info

42 Project about drawing wireframe.
This project uses the minilibx from : https://github.com/42Paris/minilibx-linux
It need libx11-dev libxext-dev to be installed
and my own lib : https://github.com/app-gitKaiwho/libft
It work on mac, linux and can be tested on windows if you use the lastest version of WSL

How to use

After compiling, use "./fdf mapname.fdf".
Usable map stored under ./test_maps are used (same goes if you want to create a new one)

Explanation

I used Raycasting (which was i belive unusefully complex for this project) even if in the end the raycast calcultion is nothing more than similar triangles formula

Issues

One big issue with my code :
For an easy coloring based on height, every single pixel is casted after lines are being drawn, and not before which causes bad performance on big maps, may correct later

About

42 Project about drawing wireframe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published