Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ set(headers
src/pathtrace.h
src/scene.h
src/sceneStructs.h
src/tiny_obj_loader.h
src/preview.h
src/utilities.h
src/ImGui/imconfig.h
src/lbvh.h

src/ImGui/imgui.h
src/ImGui/imconfig.h
Expand All @@ -95,6 +97,7 @@ set(sources
src/scene.cpp
src/preview.cpp
src/utilities.cpp
src/lbvh.cu

src/ImGui/imgui.cpp
src/ImGui/imgui_demo.cpp
Expand All @@ -111,6 +114,7 @@ list(SORT sources)
source_group(Headers FILES ${headers})
source_group(Sources FILES ${sources})

#add_subdirectory(src/libmorton)
#add_subdirectory(src/ImGui)
#add_subdirectory(stream_compaction) # TODO: uncomment if using your stream compaction

Expand Down
395 changes: 390 additions & 5 deletions README.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/bloopers/cornell.2022-09-22_init_program.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/cornell.2022-09-24_depth8_5000samp_spec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/cornell.2022-09-27_depth8_5000samp_dof.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/cornell.2022-09-28_21-01-03z.5000samp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/cornell.2022-10-09_13-47-52z.5000samp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/cornell.2022-10-10_03-25-47z.5000samp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/dragon_5000_lbvh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/final/acceleration_bunny.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/final/acceleration_dragon.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/final/acceleration_teapot.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/final/anti-aliasing-zoomed.PNG
Binary file added img/final/anti-aliasing.PNG
Binary file added img/final/antialiased-zoomed.PNG
Binary file added img/final/diffuse.PNG
Binary file added img/final/dof.PNG
Binary file added img/final/gamma.PNG
Binary file added img/final/heatmap.png
Binary file added img/final/imperfect_specular.PNG
Binary file added img/final/mesh_loading.PNG
Binary file added img/final/no-anti-aliasing-zoomed.png
Binary file added img/final/no-anti-aliasing.PNG
Binary file added img/final/noantialiased-zoomed.PNG
Binary file added img/final/nogamma.PNG
Binary file added img/final/perfect_specular.PNG
Binary file added img/final/refractive.PNG
Binary file added img/final/stream_compact_closed.PNG
Binary file added img/final/stream_compact_open - Copy.PNG
Binary file added img/final/stream_compact_open.PNG
Binary file added img/final/stream_compact_open_labels.PNG
Binary file added img/final/violin.PNG
Binary file added img/glass_ball.2022-10-09_17-19-17z.5000samp.png
Binary file added img/graphs/acceleration_structures.png
Binary file added img/graphs/caching_bounces.png
Binary file added img/graphs/caching_elapsed_time.png
Binary file added img/graphs/lbvh.png
Binary file added img/graphs/material_sorting.png
Binary file added img/graphs/russian_roulette.png
Binary file added img/graphs/stream_compact_kernels.png
Binary file added img/graphs/stream_compact_rays.png
Binary file added img/graphs/table.png
Binary file added img/mesh.2022-10-10_00-39-44z.5000samp.png
159 changes: 159 additions & 0 deletions scenes/bunny-tree.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 40

// Diffuse white
MATERIAL 1
RGB .98 .98 .98
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse red
MATERIAL 2
RGB .85 .35 .35
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse aqua
MATERIAL 3
RGB 0.4 0.9 0.6
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse grey
MATERIAL 4
RGB 0.6 0.6 0.6
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse blue
MATERIAL 5
RGB 0.5 0.5 0.9
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Specular pink
MATERIAL 6
RGB 0 0 0
SPECEX 0
SPECRGB 0.9 0.6 0.9
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

// Transmissive orange
MATERIAL 7
RGB 0 0 0
SPECEX 0
SPECRGB 0.98 0.98 0.98
REFL 1
REFR 1
REFRIOR 1.55
EMITTANCE 0

// Imperfect specular green
MATERIAL 8
RGB 0.6 1.0 0.5
SPECEX 0
SPECRGB 0.98 0.98 0.98
REFL 1
REFR 0
REFRIOR 1.55
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 35
ITERATIONS 3
DEPTH 8
FILE performance_testing
LENS_RADIUS 0.0
FOCAL_DIST 29.5
EYE 0.0 5 10.5
LOOKAT 0 5 0
UP 0 1 0


// Ceiling light middle
OBJECT 0
cube
material 0
TRANS 0 10 0
ROTAT 0 0 0
SCALE 3 .3 3

// Floor
OBJECT 1
cube
material 1
TRANS 0 0 0
ROTAT 0 0 0
SCALE 15 .01 10

// Ceiling
OBJECT 2
cube
material 2
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 20 10

// Back wall
OBJECT 3
cube
material 4
TRANS 0 5 -5
ROTAT 0 90 0
SCALE .01 10 15

// Left wall
OBJECT 4
cube
material 3
TRANS -7 5 0
ROTAT 0 0 0
SCALE .01 10 10

// Right wall
OBJECT 5
cube
material 3
TRANS 7 5 0
ROTAT 0 0 0
SCALE .01 10 10

// Mesh
OBJECT 6
mesh dragon.obj
material 8
TRANS 0 0 0
ROTAT 0 0 0
SCALE 1 1 1
12 changes: 7 additions & 5 deletions scenes/cornell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 5
EMITTANCE 10

// Diffuse white
MATERIAL 1
Expand Down Expand Up @@ -40,9 +40,9 @@ EMITTANCE 0

// Specular white
MATERIAL 4
RGB .98 .98 .98
RGB 0 0 0
SPECEX 0
SPECRGB .98 .98 .98
SPECRGB 0 .98 .98
REFL 1
REFR 0
REFRIOR 0
Expand All @@ -51,11 +51,13 @@ EMITTANCE 0
// Camera
CAMERA
RES 800 800
FOVY 45
FOVY 19.5
ITERATIONS 5000
DEPTH 8
FILE cornell
EYE 0.0 5 10.5
LENS_RADIUS 0.5
FOCAL_DIST 29.5
EYE 0.0 5 15.5
LOOKAT 0 5 0
UP 0 1 0

Expand Down
119 changes: 119 additions & 0 deletions scenes/dragon.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 40

// Diffuse white
MATERIAL 1
RGB .98 .98 .98
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse red
MATERIAL 2
RGB .85 .35 .35
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse green
MATERIAL 3
RGB .35 .85 .35
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Specular white
MATERIAL 4
RGB 0.13 0.13 0.13
SPECEX 0
SPECRGB 0.98 0.98 0.98
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 35
ITERATIONS 5000
DEPTH 5
FILE mesh_cornell
LENS_RADIUS 0.0
FOCAL_DIST 29.5
EYE 0.0 5 10.5
LOOKAT 0 5 0
UP 0 1 0


// Ceiling light
OBJECT 0
cube
material 0
TRANS 0 10 0
ROTAT 0 0 0
SCALE 3 .3 3

// Floor
OBJECT 1
cube
material 1
TRANS 0 0 0
ROTAT 0 0 0
SCALE 20 .01 10

// Ceiling
OBJECT 2
cube
material 2
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 20 10

// Back wall
OBJECT 3
cube
material 1
TRANS 0 5 -5
ROTAT 0 90 0
SCALE .01 10 20

// Left wall
OBJECT 4
cube
material 3
TRANS -10 5 0
ROTAT 0 0 0
SCALE .01 10 10

// Right wall
OBJECT 5
cube
material 3
TRANS 10 5 0
ROTAT 0 0 0
SCALE .01 10 10

// Mesh
OBJECT 6
mesh dragon.obj
material 4
TRANS 0 0 0
ROTAT 0 0 0
SCALE 1 1 1
Loading