GithubHelp home page GithubHelp logo

goakley / ray-tracer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 172 KB

Ray tracer implementation for the most fun you can have this side of the Mississippi

License: GNU General Public License v3.0

C 93.48% C++ 6.52%

ray-tracer's Introduction

Ray Tracer

Building

Just run make to build the renderer.

Usage

The current input file format is as follows:

SPHERE name x y z radius surface\_r surface\_g surface\_b reflection refraction\_index emission\_r emission\_g emission\_b
0 START name

So, for example:

SPHERE sun 0 20 -30 3 0 0 0 0 0 3 3 3

SPHERE object1 20 0 -40 4 1.00 0.30 0.36 1.0 0.5 0 0 0

0 START sun
0 START object1

Note that this imput format is subject to change very, very, very, very, very freely and rapidly.

To use the input, place it in the file in some empty directory, and run the program with that directory as the sole argument (if you place the file in default/, you do not need to pass it as an argument). Then just run the renderer:

./renderer > output.ppm

Documentation

The doc/ directory has a Doxyfile that can be used to generate the documentation for the source.

Well, most of it. I've yet to figure out how to make Doxygen parse the documentation in the header files for functions. If you know how, please drop me a line!

ray-tracer's People

Contributors

goakley avatar

Watchers

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