Git Product home page Git Product logo

lfrazierraytracer's Introduction

Lauren Frazier
HW 5: Raytracer

My raytracer takes two arguments, the scene file and the raytracer config file. The project is currently set up to read from HW5_scene.txt and raytracer_config_sample.txt, which were used to render the included image (supersweet_raytraced_image.bmp). 

The raytracer includes reflection (depth = 5) and shadows. Bounding spheres were also implemented for extra credit. There is a slight problem displaying meshes; they show up entirely shadowed. This is a bug that arose within several minutes of submission, and there was not enough time to backtrack and restore the code. If shadows are turned off, however, you can see that all the shapes are drawing properly. 

To turn off shadows: edit Raytracer::inShadow() to return false all the time.
To turn off reflection: edit the last line of Raytracer::Raytracer() to say this->depth = 1.

In release mode, this code should run in about 3-10 seconds.

This assignment uses up my second and final extension.

lfrazierraytracer's People

Contributors

lfrazier avatar

Stargazers

 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.