GithubHelp home page GithubHelp logo

sashank_aryal_raytracer_c's Introduction

Raytracer in C++

#This document is a WIP

This document is still a work in progress.

Update 0.1

So far, this raytracer has the following abilities:

  1. You can add shapes like spheres, Axis Aligned Bounding Boxes(AABBs), discs or planes in your scene. Add a new object in initializeObjects() method inside main.cpp.

  2. You can add two types of lights, point lights and directional lights. You can have as many lights as you want in the scene. Add a new light in initializeLights() method inside main.cpp.

  3. The camera is modeled as a perspective camera, so you can change its position and lookat.

  4. Anti-aliasing is disabled by default. To enable anti-aliasing, use useSampling method of the Camera class.

Update 0.2

  1. Triangle shape has been added.

  2. Now you can create multiple test scenes and have objects particular to a scene. Previously, objects container was static and multiple scenes were not allowed. A scene has width, height, camera, objects and lights.

  3. Transformations work. You can rotate, scale and translate objects.

  4. Depth of field works.

  5. Specular shading has been added. Remember: Specular coeff + diffuse coeff + ambience + reflectivity must be equal to 1.

sashank_aryal_raytracer_c's People

Contributors

sashankaryal avatar

Watchers

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