Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracer (RT) - 3D Primitives Implementation

This project involves developing a minimalistic ray tracing engine capable of generating images by tracing rays through a 3D scene. The implementation supports multiple geometric primitives: quad, cube, sphere, and cylinder. Each object is defined with its physical properties (position, size, color) and interacts with lighting to produce realistic rendering. The goal is to deepen the understanding of ray tracing algorithms and 3D intersection calculations.

It can be used has a standelone programm and has a crate

Installation

  1. Install cargo

  2. Build the project

  git clone https://github.com/romananas/raytracer
  cd raytracer

  cargo build --release
  ./target/release/raytracer > img.ppm

Exemples of results

Exemple used in The Ray Tracing Road to Rust

Result of the programm computer generated image

Scene asked in z01 exercise RT

Result of the programm computer generated image

To -Do

  • Implementing a json parser
  • Adding polygonal structures

Acknowledgements

About

A raytraced image generator

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages