Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
fdb0935
Started work, but mostly integrated Kai's changes.
bcrusco Sep 17, 2015
318cfac
Update README.md
bcrusco Sep 17, 2015
ce23432
Significantly more work done towards the basic path tracer requiremen…
bcrusco Sep 19, 2015
59ecc79
Resolved weird multidefine issue that popped up randomly. Modified th…
bcrusco Sep 19, 2015
30d0e01
Fixed some memory problems with the thrust compaction.
bcrusco Sep 19, 2015
326d75c
Pulled Kai's changes for the cornell scene file. The previous one was…
bcrusco Sep 19, 2015
ce754a9
Fully working diffuse scene. Untested code for perfect specular and n…
bcrusco Sep 19, 2015
5af0d8a
Added a scene with a mirrored ball and made a change that fixes an is…
bcrusco Sep 19, 2015
e053296
A sorta workaround for nonperfect specular
bcrusco Sep 20, 2015
6a6fcc3
Much more correct version of nonperfect specular
bcrusco Sep 20, 2015
6a82b60
Implemented depth of field.
bcrusco Sep 20, 2015
8fd8e8d
Rough nonworking version of refraction while I fix another issue.
bcrusco Sep 20, 2015
f2351af
Fixed an issue with the depth of field implementation where the scene…
bcrusco Sep 20, 2015
94d3e04
Working refracted surfaces!
bcrusco Sep 20, 2015
0f253d6
Motion blur implemented. Supports translation. Numerous other fixes a…
bcrusco Sep 21, 2015
ed39455
Updated scene files to take into account the new config variables tha…
bcrusco Sep 21, 2015
4f372c9
Added interactive controls for depth of field.
bcrusco Sep 21, 2015
b15019d
Added interactive controls for motion blur.
bcrusco Sep 21, 2015
ff84bd9
Fix inside intersections for box.
bcrusco Sep 21, 2015
a7d5f7b
More complex scene file.
bcrusco Sep 24, 2015
aacd28c
new versions of kernMapToBoolean and kernScatter that support Rays. W…
bcrusco Sep 24, 2015
30c7916
Shared memory stream compaction implemented!
bcrusco Sep 26, 2015
0672841
White space nit pick.
bcrusco Sep 26, 2015
b74878c
Removed path tracing instruction comment.
bcrusco Sep 26, 2015
bd08352
Updated cornel box scene
bcrusco Sep 26, 2015
f303b86
Recorded analysis data, added (currently commented out) code for meas…
bcrusco Sep 26, 2015
2b6b4c1
Analysis now in the form of charts.
bcrusco Sep 26, 2015
9731609
Update README.md
bcrusco Sep 26, 2015
2b39ad3
Commented out more debug code.
bcrusco Sep 26, 2015
f2a01fa
Update README.md
bcrusco Sep 26, 2015
35b90dc
Update README.md
bcrusco Sep 26, 2015
5fec921
Update README.md
bcrusco Sep 26, 2015
883a687
Update README.md
bcrusco Sep 26, 2015
a0f6e69
Update README.md
bcrusco Sep 26, 2015
30ffea1
Main readme image.
bcrusco Sep 26, 2015
299d5ee
Update README.md
bcrusco Sep 26, 2015
a41c90b
Update README.md
bcrusco Sep 26, 2015
d19b181
Update README.md
bcrusco Sep 26, 2015
d06d487
Update README.md
bcrusco Sep 26, 2015
f410902
Update README.md
bcrusco Sep 26, 2015
e4f9246
Updated scenes. Non perfect spec image.
bcrusco Sep 26, 2015
935d2c0
Update README.md
bcrusco Sep 26, 2015
70a8125
Update README.md
bcrusco Sep 26, 2015
097e668
Update README.md
bcrusco Sep 27, 2015
6883289
Update README.md
bcrusco Sep 27, 2015
36b0e75
Update README.md
bcrusco Sep 27, 2015
2867c96
Update README.md
bcrusco Sep 27, 2015
3878b8e
Fixed some scene files after realizing that the ceiling light was sca…
bcrusco Sep 27, 2015
52ec1c2
Update README.md
bcrusco Sep 27, 2015
c2b6366
Glass ball image.
bcrusco Sep 27, 2015
84adba3
Update README.md
bcrusco Sep 27, 2015
740e6a0
Update README.md
bcrusco Sep 27, 2015
6bdf9bb
Fixed light location.
bcrusco Sep 27, 2015
d5c8f3d
Merge branch 'master' of https://github.com/bcrusco/Project3-CUDA-Pat…
bcrusco Sep 27, 2015
e2eb0a3
New nonperfect specular image with the correct ceiling light.
bcrusco Sep 27, 2015
94dd50a
Update README.md
bcrusco Sep 27, 2015
5cf9d58
Update README.md
bcrusco Sep 27, 2015
01bfa9e
Perfect specular mirror and depth of field images. Fixes to some scen…
bcrusco Sep 27, 2015
7160ba4
Update README.md
bcrusco Sep 27, 2015
7a333c7
Update README.md
bcrusco Sep 27, 2015
10d9535
Update README.md
bcrusco Sep 27, 2015
4b8c74a
Update README.md
bcrusco Sep 27, 2015
2b50688
Update README.md
bcrusco Sep 27, 2015
2705079
Fixed a bug that kept motion blur from working.
bcrusco Sep 27, 2015
b3120ef
More photogenic motion blur configuration.
bcrusco Sep 27, 2015
20da269
Motion blur image.
bcrusco Sep 27, 2015
e9e16e4
Update README.md
bcrusco Sep 27, 2015
0a2458d
Image with antialiasing disabled.
bcrusco Sep 27, 2015
8059983
Update README.md
bcrusco Sep 27, 2015
dab5fc8
Update README.md
bcrusco Sep 27, 2015
d33fe74
Update README.md
bcrusco Sep 27, 2015
aff506b
Diffuse image.
bcrusco Sep 27, 2015
1725108
Update README.md
bcrusco Sep 27, 2015
9fe228f
Update README.md
bcrusco Sep 27, 2015
69a7789
Update README.md
bcrusco Sep 27, 2015
3405138
Update README.md
bcrusco Sep 27, 2015
dfdff02
Update README.md
bcrusco Sep 27, 2015
3f75a59
AA comparison psd file.
bcrusco Sep 27, 2015
2b7d97c
Attempt to optimize by reducing register count.
bcrusco Sep 29, 2015
f54f029
Annotated images for dof and refraction.
bcrusco Sep 29, 2015
e29ec38
Update README.md
bcrusco Sep 29, 2015
da096a5
Update README.md
bcrusco Sep 29, 2015
4f688b8
Update README.md
bcrusco Sep 29, 2015
dbdbaf6
Update README.md
bcrusco Sep 29, 2015
674a72f
Update README.md
bcrusco Sep 29, 2015
ae7a14f
Update README.md
bcrusco Sep 29, 2015
e865cc6
Higher fidelity images.
bcrusco Oct 2, 2015
2333683
Update README.md
bcrusco Dec 10, 2015
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: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CUDA_PROPAGATE_HOST_FLAGS OFF)
endif()

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

cuda_add_executable(${CMAKE_PROJECT_NAME}
Expand All @@ -77,7 +77,7 @@ cuda_add_executable(${CMAKE_PROJECT_NAME}

target_link_libraries(${CMAKE_PROJECT_NAME}
src
#stream_compaction # TODO: uncomment if using your stream compaction
stream_compaction
${CORELIBS}
)

Expand Down
21 changes: 21 additions & 0 deletions Closed Scene Analysis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Closed Scene Analysis

Stream compaction:
Depth 0: Trace took 4.87280ms and 476986 out of 640000 rays remain.
Depth 1: Trace took 3.80563ms and 403006 out of 640000 rays remain.
Depth 2: Trace took 3.32486ms and 348860 out of 640000 rays remain.
Depth 3: Trace took 2.91789ms and 305059 out of 640000 rays remain.
Depth 4: Trace took 2.58755ms and 268097 out of 640000 rays remain.
Depth 5: Trace took 2.29322ms and 236968 out of 640000 rays remain.
Depth 6: Trace took 2.05750ms and 209244 out of 640000 rays remain.
Depth 7: Trace took 1.83795ms and 185030 out of 640000 rays remain.

No stream compaction:
Depth 0: Trace took 5.03702ms and 640000 out of 640000 rays remain.
Depth 1: Trace took 3.98282ms and 640000 out of 640000 rays remain.
Depth 2: Trace took 3.67200ms and 640000 out of 640000 rays remain.
Depth 3: Trace took 3.43274ms and 640000 out of 640000 rays remain.
Depth 4: Trace took 3.20074ms and 640000 out of 640000 rays remain.
Depth 5: Trace took 2.99098ms and 640000 out of 640000 rays remain.
Depth 6: Trace took 2.82339ms and 640000 out of 640000 rays remain.
Depth 7: Trace took 2.65965ms and 640000 out of 640000 rays remain.
21 changes: 21 additions & 0 deletions Open Scene Analysis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Open Scene Analysis

Stream compaction:
Depth 0: Trace took 4.58256ms and 447407 out of 640000 rays remain.
Depth 1: Trace took 3.39939ms and 258788 out of 640000 rays remain.
Depth 2: Trace took 2.05389ms and 184010 out of 640000 rays remain.
Depth 3: Trace took 1.51395ms and 138638 out of 640000 rays remain.
Depth 4: Trace took 1.16778ms and 109147 out of 640000 rays remain.
Depth 5: Trace took 0.98333ms and 87256 out of 640000 rays remain.
Depth 6: Trace took 0.83344ms and 70458 out of 640000 rays remain.
Depth 7: Trace took 0.66774ms and 56732 out of 640000 rays remain.

No stream compaction:
Depth 0: Trace took 4.66154ms and 640000 out of 640000 rays remain.
Depth 1: Trace took 3.53600ms and 640000 out of 640000 rays remain.
Depth 2: Trace took 2.62701ms and 640000 out of 640000 rays remain.
Depth 3: Trace took 2.29034ms and 640000 out of 640000 rays remain.
Depth 4: Trace took 2.06243ms and 640000 out of 640000 rays remain.
Depth 5: Trace took 1.90163ms and 640000 out of 640000 rays remain.
Depth 6: Trace took 1.77546ms and 640000 out of 640000 rays remain.
Depth 7: Trace took 1.66707ms and 640000 out of 640000 rays remain.
287 changes: 72 additions & 215 deletions README.md

Large diffs are not rendered by default.

Binary file added img/AA comparison.psd
Binary file not shown.
Binary file added img/Project 3 Analysis 1.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/Project 3 Analysis 2.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/Project 3 Analysis 3.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/Project 3 Analysis 4.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 removed img/REFERENCE_cornell.5000samp.png
Binary file not shown.
Binary file removed img/REFERENCE_sphere.5000samp.png
Binary file not shown.
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_glass_10k.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_main_20k.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.
207 changes: 183 additions & 24 deletions scenes/cornell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 5
EMITTANCE 1

// Diffuse white
MATERIAL 1
Expand All @@ -19,9 +16,6 @@ SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0

// Diffuse red
Expand All @@ -32,9 +26,6 @@ SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0

// Diffuse green
Expand All @@ -45,83 +36,251 @@ SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
SCATTER 0
ABSCOEFF 0 0 0
RSCTCOEFF 0
EMITTANCE 0

// spec green
MATERIAL 4
RGB 0 1 0
SPECEX .01
SPECRGB .2 .2 .2
REFL 1
REFR 0
REFRIOR 1.5
EMITTANCE 0

// glass
MATERIAL 5
RGB .25 .85 .35
SPECEX 1
SPECRGB 1 1 1
REFL 0
REFR 1
REFRIOR 2.2
EMITTANCE 0

// spec blue
MATERIAL 6
RGB .11 .56 1
SPECEX .01
SPECRGB .1 .1 .1
REFL 1
REFR 0
REFRIOR 1.5
EMITTANCE 0

// Perfect mirror
MATERIAL 7
RGB 1 1 1
SPECEX 0
SPECRGB 1 1 1
REFL 1
REFR 0
REFRIOR 1.5
EMITTANCE 0

// spec red
MATERIAL 8
RGB 1 .18 .18
SPECEX .01
SPECRGB .1 .1 .1
REFL 1
REFR 0
REFRIOR 1.5
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
ITERATIONS 20000
DEPTH 8
FILE cornell
frame 0
FILE cornell_mirror
EYE 0.0 5 10.5
VIEW 0 0 -1
UP 0 1 0

BLUR 0 // Is blur active
DOF 0 // Is DOF active
FD 9.5 // Focal distance
AR 0.2 // Aperture radius

// Ceiling light
OBJECT 0
cube
material 0
BLUR 0
frame 0
TRANS 0 10 0
ROTAT 0 0 0
SCALE 3 .3 3
SCALE 10 .2 30
frame 1
TRANS 0 10 0
ROTAT 0 0 0
SCALE 10 .2 30

// Floor
OBJECT 1
cube
material 1
BLUR 0
frame 0
TRANS 0 0 0
ROTAT 0 0 0
SCALE 10 .01 10
SCALE 10 .01 30
frame 1
TRANS 0 0 0
ROTAT 0 0 0
SCALE 10 .01 30

// Ceiling
OBJECT 2
cube
material 1
BLUR 0
frame 0
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 10 10
SCALE .01 10 30
frame 1
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 10 30

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

// Left wall
OBJECT 4
cube
material 2
BLUR 0
frame 0
TRANS -5 5 0
ROTAT 0 0 0
SCALE .01 10 10
SCALE .01 10 30
frame 1
TRANS -5 5 0
ROTAT 0 0 0
SCALE .01 10 30

// Right wall
OBJECT 5
cube
material 3
BLUR 0
frame 0
TRANS 5 5 0
ROTAT 0 0 0
SCALE .01 10 10
SCALE .01 10 30
frame 1
TRANS 5 5 0
ROTAT 0 0 0
SCALE .01 10 30

// Sphere
OBJECT 6
sphere
material 1
material 4
BLUR 0
frame 0
TRANS -2 5 -1
ROTAT 0 0 0
SCALE 3 3 3
frame 1
TRANS -2 5 -1
ROTAT 0 0 0
SCALE 3 3 3

// Glass box
OBJECT 7
cube
material 5
BLUR 0
frame 0
TRANS 2 1 -1
ROTAT 0 45 0
SCALE 3 3 3
frame 1
TRANS 2 1 -1
ROTAT 0 45 0
SCALE 3 3 3

// sphere
OBJECT 8
sphere
material 6
BLUR 0
frame 0
TRANS 2 3.5 -1
ROTAT 0 0 0
SCALE 2 2 2
frame 1
TRANS 2 3.5 -1
ROTAT 0 0 0
SCALE 2 2 2

// Perfect Mirror box
OBJECT 9
cube
material 7
BLUR 0
frame 0
TRANS -1 4 -1
TRANS -3 1 0
ROTAT 0 60 0
SCALE 2 2 2
frame 1
TRANS -3 1 0
ROTAT 0 60 0
SCALE 2 2 2

// non perfect red sphere
OBJECT 10
sphere
material 8
BLUR 0
frame 0
TRANS 2.5 6.5 -2.8
ROTAT 0 0 0
SCALE 3 3 3
frame 1
TRANS 2.5 6.5 -2.8
ROTAT 0 0 0
SCALE 3 3 3

// glass ball
OBJECT 11
sphere
material 5
BLUR 0
frame 0
TRANS 3.8 .7 .9
ROTAT 0 0 0
SCALE 1.5 1.5 1.5
frame 1
TRANS 3.8 .7 .9
ROTAT 0 0 0
SCALE 1.5 1.5 1.5

// front wall
OBJECT 12
cube
material 1
BLUR 0
frame 0
TRANS 0 5 15
ROTAT 0 90 0
SCALE .01 10 10
frame 1
TRANS 0 5 15
ROTAT 0 90 0
SCALE .01 10 10
Loading