Giter Club home page Giter Club logo

raytracing-on-triangle-meshes's Introduction

Ray Casting on Triangle Meshes

Overview

Projection and animation of arbitrary number of objects given in obj format using a computer graphics technique called "Ray casting" to make them look realistic.

Refer the documentation for more details https://ksskreddy.github.io/RayTracing-on-Triangle-Meshes/

Specifications

Input : Set of objects(in obj format), respective centers, scaling factors, colors, position of light and camera

Output: The scene as seen from the camera in a 500×500 PPM image

Other details

  • The objects are assumed to be in a 500×500×500 room centered at (250,250,−250)
  • So, the centers of the objects and their scaling factors must be chosen accordingly so that the objects don't go outside the room.
  • The specifications like room size, output image dimensions can be changed by changing the macro WALL_SIDE in the tracer.h file.
  • To turn off the effect of shadow of one object on another, the variable CrossShadows can be set to false.

Results

Scene with vase on table

Scene with teapot and mug

Scene with Spheres

Scene with bunny

Scene with plane

raytracing-on-triangle-meshes's People

Contributors

ksskreddy avatar suriya17 avatar

Watchers

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.