Skip to content

A 3D ray tracer based on physically based rendering

License

Notifications You must be signed in to change notification settings

methusael13/phy-ray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhyRay

A ray tracer based on physically based rendering. Originally based on the pbrt-v3 rendering engine.

Status

Project is under active development. No release candidates yet.

Dependencies

  • OpenEXR
Platform Command
Fedora sudo dnf install OpenEXR OpenEXR-libs OpenEXR-devel OpenEXR_Viewers
Ubuntu sudo apt-get install openexr libopenexr-dev libopenexr22 openexr-viewers

Building

Clone this repository

git clone https://github.com/methusael13/phy-ray

Create a build directory and compile

cd phy-ray
mkdir build
cd build && cmake ..
make

Run unit tests

make test

Render a test scene (defined in phyray_app/src/main.cpp)

phyray_app/phyrapp <filename>

View rendered image

exrdisplay <filename>.exr

Render Previews

Render01

Materials: Plastic, Glass, Metal(Gold) | Samples: 400 | Lights: AreaLights(Disk, Sphere)


Render02

Materials: Plastic, Glass, Metal(Copper) | Samples: 400 | Lights: AreaLights(Disk, Sphere)


Render03

Materials: Plastic | Samples: 256 | Lights: AreaLights(Disk, Sphere)


Render04

Materials: Plastic, Glass, Mirror, Matte, Metal(Silver) | Samples: 2500 | Lights: AreaLights(Disk)