Skip to content

Project of Computer Graphics Course: Image rendering with ray tracing.

License

Notifications You must be signed in to change notification settings

Billijk/Raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray-tracer

Computer Graphics Course Project: Image rendering with Ray Tracing.

How to run

  1. Compile with Makefile
  2. Run with following arguments:
./main [-n <round>] [-d <x> <y>] [-p] [-na]
    [-i <input>] [-c <input>] [-o <output>] [-b <output>] 

-n specifies the number of iterations.
-d uses debug mode, which only renders one pixel specified by <x> <y>.
-p uses preview mode, which only renders the outline of objects.
-na uses naive ray tracing. Without this argument, path tracing (also called Monte-Carlo ray tracing) is used.
-i specifies input file (in xml format, see files in 'input/' for example).
-c means continue rendering based on the given image (must be text format).
-o output as text format at the given location.
-b output as bmp format at the given location.

Supported features

Rendered Examples

Using inputs/balls.xml:

Using inputs/dk.xml (focus on dragon):

Using inputs/dk.xml (focus on kitten):

About

Project of Computer Graphics Course: Image rendering with ray tracing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages