GithubHelp home page GithubHelp logo

fredatgithub / 42-fdf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pbondoer/42-fdf

0.0 1.0 0.0 283 KB

FdF @ 42 - wireframe rasterizer

License: GNU General Public License v3.0

C++ 0.77% C 88.42% Objective-C 7.10% Makefile 0.73% Groff 2.99%

42-fdf's Introduction

FdF @ 42

screenshot

A simple 3D height-map renderer. You can rotate models, color is defined by relative height in the map. More features planned!

Features

  • Simple file format definition (array of space-separated integers)
  • 3D rotations with the mouse
  • Camera controls (zoom, translate)
  • Pretty color gradients!
  • Double-buffered
  • Line clipping

Planned features

  • Other projections (right now it's just orthographic)
  • Different view modes: point map, wireframe, and filled
  • More color modes: gradient, file-defined and z-buffer
  • Depth shader
  • Multithreaded calculations (OpenCL even?)
  • Anti-aliased rendering
  • Level-of-detail (less points when you zoom out on huge maps)

Compiling and running

Run make. An executable will compile. Currently only tested on OS X.

Run it with ./fdf [map]. A bunch of sample maps are provided in the maps directory. The one in the screenshot above is maps/42.fdf.

Controls are: drag with left click to rotate, drag with right to zoom, drag with both to move around.

License

This project is licensed under the GNU General Public License 3.

42-fdf's People

Contributors

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