Skip to content

konstantin-v03/3D-Ray-Tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Ray Tracer

3D Ray Tracer renders a scene represented in json format and saves in bmp data format.

Getting started

  1. Compile code in your favourite c compiler.

  2. Create your own scene json representation by example in directory. Supports rendering of spheres and planes.

  3. Run compiled c code with following parameters:

  • scene json file name
  • file name for saving traced scene in bmp data format
  • width of traced image
  • height of traced image
  • num bounces
  • num samples ray per pixel (root must be an integer)
    ./main scene.json traced.bmp 1000 1000 10 4

traced.bmp

About

Non-real time 3D ray tracer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published