A brief computer graphics / rendering course
 
 
 
Go to file
Dmitry V. Sokolov e966911a46 stereoscope rendering 2019-02-03 15:35:15 +01:00
doc stereoscope rendering 2019-02-03 15:35:15 +01:00
lib Added all necessary stuff for the homework assignment (environment mapping + triangulated meshes) 2019-01-20 13:30:16 +01:00
.gitignore checkerboard 2019-01-20 12:27:10 +01:00
.gitmodules Added all necessary stuff for the homework assignment (environment mapping + triangulated meshes) 2019-01-20 13:30:16 +01:00
.gitpod.yml files update + gitpod 2019-01-25 23:25:01 +01:00
CMakeLists.txt Added all necessary stuff for the homework assignment (environment mapping + triangulated meshes) 2019-01-20 13:30:16 +01:00
Dockerfile gitpod test in a branch 2019-01-25 17:33:30 +01:00
Readme.md Update Readme.md 2019-01-29 10:32:18 +01:00
duck.obj Added all necessary stuff for the homework assignment (environment mapping + triangulated meshes) 2019-01-20 13:30:16 +01:00
envmap.jpg Added all necessary stuff for the homework assignment (environment mapping + triangulated meshes) 2019-01-20 13:30:16 +01:00
geometry.h First commit; rudimentary framebuffer check 2019-01-20 12:13:53 +01:00
tinyraytracer.cpp stereoscope rendering 2019-02-03 15:35:15 +01:00

Readme.md

Homework assignment

Add environment maps:

... and triangulated meshes:

All the boring code (image/obj files serializer etc) is already there; to obtain the above image it suffices to add 10-20 lines of code.

compilation

git clone --recurse-submodules https://github.com/ssloy/tinyraytracer.git
cd tinyraytracer
git checkout homework_assignment
git submodule update --init
mkdir build
cd build
cmake ..  
make

You can open the project in Gitpod, a free online dev evironment for GitHub:

Open in Gitpod

On open, the editor will compile & run the program as well as open the resulting image in the editor's preview. Just change the code in the editor and rerun the script (use the terminal's history) to see updated images.