Skip to content

A Simple Path Tracer based on "Ray Tracing in a Weekend" by Peter Shirley

Notifications You must be signed in to change notification settings

mosamaasif/RT_in_a_Weekend_Ipml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License


Logo

Simple Path Tracer

Implementation of CPU based Path Tracer based on Ray Tracing in a Weekend by Peter Shirley

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

This is an implementation of a very simple Path Tracer based on the famous book "Ray Tracing in a Weekend" by Peter Shirley.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • C++ - Google for your OS.
  • git

Installation

  1. Clone the repo
    git clone https://github.com/saeenyoda/RT_IN_A_WEEKEND_IMPL.git

Usage

How to Run

  1. Open up command line or terminal and navigate to the cloned repo's directory
    cd "PATH-TO-DIRECTORY"
  2. Run the main.cpp file (Using terminal on mac)
    clang++ -std=c++14 -stdlib=libc++ -I "PATH-TO-res/utils-FOLDER" -I "PATH-TO-res/vendors/stb_image-FOLDER" "PATH-TO-main.cpp" "PATH-TO-HittableList.cpp" "PATH-TO-Sphere.cpp" -o out/release/main 

NOTE:
      The instructions given above are for mac and that too using the terminal. For other OS and IDEs refer to the relevant docs.

Output Images

  • Sample 1
  • Sample 2

License

Distributed under the MIT License. See LICENSE for more information.