Skip to content

Ngoguey42/proj04_graph_fdf

Repository files navigation

Project #4 fdf (Wire-frame), Nov 2014

#####Read a given file and draw its geometrical representation.

#####Grade (125/100) (125/125)*


Goals:

  • Open a given file and read a grid out of it. (Exemple)
  • Use "minilibX", school's truncated version of "X11".
  • ESC quits the program.

Recommended bonuses:

  • Three colors gradient, depending on the elevation of a point.
  • Read colors in arguments.
  • Handle hidden faces.
  • Multiple projections.

My additions:

  • Movements in the 3d plane. W/S:"Move Forward/Backward", Q/E:"Strafe Left/Right", A/D:"Turn Left/Right" UP/DOWN:"Look Up/Down".
  • Balanced movements while multiple keys are pressed. (movements.c)
  • Time dependant movements, instead of CPU dependant. (events.c) (libft/srcs/ft_clock[...].c)
  • One, two or three colors read in arguments.

Use: (colors in RGB decimal):

./fdf file.fdf ["R1 G1 B1[;R2 G2 B2[;R3 G3 B3]]"]

ft_retro







All my C files strictly observes school's norm, it may often lead to odd or illogical syntaxes.
- [ ] Forbiden keywords: for, do, switch, goto.
- [ ] No more than 25 lines inside a function block.
- [ ] No more than 80 characters per lines.
- [ ] At most 5 functions per files.
- [ ] Only 1 declaration per line.  
- [ ] No declaration and assignation on the same line.
- [ ] At most 1 assignation per line.
- [ ] No more than 4 parameters for a function.
- [ ] No nested ternary.
- [ ] Comments alowed at the top of the file.
*
- A grade of 85 was required to validate the project.
- A maximum grade of 125 was reachable.
- Second sessions are organised for failed projects.

About

3d wire-frame representation. Dec2014

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published