Giter Club home page Giter Club logo

fdf's Introduction

fdf

A height map wireframe renderer in C using minilibx. (42 Silicon Valley)

Learning Objectives

  • Implement the rasterization pipeline without OpenGL.

Prerequisites

You are on macOS with gcc and make installed.

Compiling

make

Running

./fdf map_file

Controls

Top-level Controls

  • 1 Select perspective projection.
  • 2 Select parallel projection.
  • 3 Select spherical projection.
  • 4 Use given colors (white by default).
  • 5 Use height-based colors.
  • Escape Terminate the renderer.

Viewport Controls

  • Spacebar Reset to default view.

View Direction

  • Numpad 0 Preset isometric view.
  • Numpad 4 Look toward +Z-axis.
  • Numpad 1 Look toward -Z-axis.
  • Numpad 5 Look toward +X-axis.
  • Numpad 2 Look toward -X-axis.
  • Numpad 6 Look toward +Y-axis.
  • Numpad 3 Look toward -Y-axis.

Scaling

  • + Increase scaling in X, Y, Z-axes.
  • - Decrease scaling in X, Y, Z-axes.
  • Q Increase scaling in X-axis.
  • W Decrease scaling in X-axis.
  • E Increase scaling in Y-axis.
  • R Decrease scaling in Y-axis.
  • T Increase scaling in Z-axis.
  • Y Decrease scaling in Z-axis.

Rotation

  • Drag LMB Rotate in X, Y-axes.
  • A Increase rotation around X-axis.
  • S Decrease rotation around X-axis.
  • D Increase rotation around Y-axis.
  • F Decrease rotation around Y-axis.
  • G Increase rotation around Z-axis.
  • H Decrease rotation around Z-axis.

Translation

  • Z Increase translation along X-axis.
  • X Decrease translation along X-axis.
  • C Increase translation along Y-axis.
  • V Decrease translation along Y-axis.
  • B Increase translation along Z-axis.
  • N Decrease translation along Z-axis.

fdf's People

Contributors

ashih42 avatar

Stargazers

Antonio Ferreira avatar Mike Brave avatar

Watchers

James Cloos 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.