Giter VIP home page Giter VIP logo

42-rt's Introduction

RT

What is RT?

RT is a fully featured Raytracer built as a project at 42. This project is intended to be a four person six week project, however I decided to attempt it by myself. Ray tracing is a technique for rendering images by simulating the path of light through an image plane. This project uses .ini files to configure the input.

Coding Style

At 42, we follow a strict norm in order to teach us to follow style guides. This norm also prevents us from using many built-in functions. In this project, we are limited to using a barebones graphic library called minilibx. This library limits the functionality to creating windows, handling input hooks, and coloring specific pixels.

Usage

RT takes it's starting configuration in the form of a .ini file. These files specify the window name and size, as well as which objects are to be rendered into the scene and their positions.

Once loaded up, RT accepts basic arrow key and numpad input to control the camera, as well as command line input to interact with the scene. This allows objects to be added and removed, as well as the modification of their properties.

Features

  • INI File Input
  • Keyboard Input
  • Live CLI
    • Adding/Removing Objects
    • Modifying Objects
    • Printing Debug Info
  • Reflections
    • Lambertian Shading
    • Blinn-Phong Shading
  • Refractions
    • Density
  • Transparency
  • Anti-Aliasing
  • Supersampling
  • Perlin Noise
    • Marble Material
    • Bump Mapping
  • Triangle Intersections
  • Model (Parsed .OBJ) Input

Images

Mirrors

Models

Shrek

Marble

Bump Maps

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.