Skip to content
/ cg Public

Repository for Computer Graphics, used to make a simple Ray Tracing project.

License

Notifications You must be signed in to change notification settings

RickFqt/cg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This is the basic architecture for the Ray Tracing Teaching Tool (RT3) Project.

Processing flow

The main.cpp calls the api.cpp, which, in turn, calls various API functions that create the objects, such as camera, integrator, scene, film. The information to create these classes are stored in the RenderOptions struct, while the scene is being parsed.

When the parser finds the tag world_end it creates all the objects (film, camera, scene, integrator) and calls the render() method. This method corresponds to the "main loop" of the rendering process.

To compile

cmake -S . -B build
cmake --build build
./build/basic_rt3 scene/scene_01.xml

TODO

  • Fix parsing of triangle boolean attributes (back_face_culling, compute normals)

About

Repository for Computer Graphics, used to make a simple Ray Tracing project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published