Giter VIP home page Giter VIP logo

rtv1_42's Introduction

ft_rtv1

RTv1 is a simple ray tracing program. It parses a 3D scene from a file and applies ray tracing algorithm to render the given scene.
Note: this project was made for MacOS. In case you don't have one, you can check this link https://github.com/ilkou/minilibx it explains how to work with minilibx in windows / linux

Installation

Clone or download this repository and run : make

Usage

./RTv1 [filename]
filename must contain path to a valid scene. If the scene is not valid, RTv1 will write corresponding error on standard output.

Scene Syntax

Scene is a file which describes camera, lights and geometric objects that have to be rendered. This project can render such geometric shapes:

  • Sphere;
  • Infinite Plane;
  • Infinite Cylinder;
  • Infinite Cone.

if you want to test your own scene check the file_indicator in repository 'files' to have an idea how to write a valid scene.

Screenshots

Demo 1:

Demo 2:

Demo 3:

Demo 4:

Contact me

Feel free to email me ([email protected]) about any bugs or anything you find wrong in the code.

rtv1_42's People

Contributors

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