Skip to content

iMeaNz/my_raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My_raytracer

Overview

Raytracer is a program designed to generate images by simulating the path of light as it interacts with various geometries, producing realistic digital images. One specificity is that this raytracer is made on the CPU-side, and is not GPU-powered.


Features

  • Primitives: Supports basic shapes like spheres and planes.
  • Transformations: Includes translation capabilities.
  • Lighting: Handles directional and ambient lighting.
  • Material: Allows for flat color rendering.
  • Scene Configuration: Easily configure scenes with primitives, lighting, and cameras.
  • Transformation: Incorporates rotation features.
  • Shadows: Supports drop shadows for realistic scenes.
  • More Primitives: Implement triangles, and .OBJ file support.
  • Advanced Transformations: Explore scaling, shearing and transformation matrices.
  • Advanced Lighting: Experiment with multiple directional and point lights, colored lighting, and the Phong reflection model.
  • Global illumination : Basic GI model
  • Advanced Material: Add transparency, refraction, reflection, and various texturing options, including file-based, procedural chessboard, and Perlin noise texturing.
  • Scene Configuration: Go further with scene-in-scene importing, antialiasing through supersampling, adaptive supersampling, and various optimization techniques like multithreading.

Scene configuration

Configure your scenes using an external file. The provided example demonstrates the structure of scene configuration using the libconfig++ format.

For examples of scene you can find them in the ./scenes folder.


Dependencies

  • libconfig++ (for scene configuration parsing)
  • SFML 2.5.1
  • C++ 20

Compilation and Usage

To build the project install the dependencies listed above, then run these commands:

cmake . && make -j

A raytracer binary will be created. To run it:

./raytracer [PATH TO THE SCENE .cfg FILE]

About

Raytracer that generates images of a scene (cfg file) by simulating light bouncing on the geometry (CPU-side only).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors