Skip to content

andrew1k3/ray-tracing-spheres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing 3D Renderer

A simple ray tracing algorithm that renders a 3D world with spheres and lighting.

Description

This program uses a basic ray tracing algorithm, demonstrating how light rays interact with a 3D environment containing spheres. The algorithm computes pixel colors based on ray-sphere intersections, resulting in a rendered image.

Preview

image ImageToStl com_output

GUI

gui_image

Dependencies

  • Python 3.0.0+
  • Pillow pip install pillow
  • PySide6 pip install pyside6

To install:

pip install -r requirements.txt

How To Use

Navigate to the root of the directory:

To use GUI:

python3 ./src/main.py

To use Console:

python3 ./src/main.py -c

View the rendered image in ./output.png.

About

ray tracing algorithm for a 3d world with spheres and lights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages