Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project 3: Angelina Risi #7

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
2d99409
Stream compaction, basic shader (issues, needs debugging)
risia Sep 21, 2018
db7f233
Fixed wierd banding by using depth as 3rd rng seed input, and properl…
risia Sep 25, 2018
9d29b96
Stream compaction working, but slow?
risia Sep 25, 2018
08a6c5a
Thrust added, about 2s faster to run 50 iter.
risia Sep 25, 2018
fbdf932
Ideal Reflection
risia Sep 27, 2018
fd2f918
Refraction works! :D
risia Sep 27, 2018
b5af982
Added rng element to refraction to choose reflect or refract
risia Sep 27, 2018
e907246
Attempted depth-of-field, seems to work
risia Sep 27, 2018
21453a4
Made slight fixes to refraction
risia Sep 29, 2018
980153d
Subsurface scattering progress
risia Sep 29, 2018
21e92d0
Test scenes and a sample image
risia Sep 30, 2018
eebe62b
Update README.md
risia Sep 30, 2018
d0df019
Update README.md
risia Sep 30, 2018
f53b943
Material sample scene image
risia Sep 30, 2018
10c816c
Update README.md
risia Sep 30, 2018
9d3cd08
Merge branch 'master' of https://github.com/risia/Project3-CUDA-Path-…
risia Sep 30, 2018
5bd6560
Moved DOF to ray generation
risia Sep 30, 2018
0c5894a
Update README.md
risia Sep 30, 2018
ce6a422
DOF documentation
risia Sep 30, 2018
e785144
Fixed bug in determining whether inside object
risia Sep 30, 2018
5e94309
started material type documentation
risia Sep 30, 2018
84ec4d5
Update README.md
risia Sep 30, 2018
82d21b6
Update README.md
risia Sep 30, 2018
df78232
Update README.md
risia Sep 30, 2018
17a1c1f
Update README.md
risia Sep 30, 2018
c29a087
Update README.md
risia Sep 30, 2018
c221eaf
Turns out my thrust compaction wasn't really working. Back to mine
risia Sep 30, 2018
1ee4216
Stream compaction analysis img
risia Sep 30, 2018
1bca833
SC performance analysis
risia Sep 30, 2018
c4c7770
Edited image
risia Sep 30, 2018
9de8b5a
Merge branch 'master' of https://github.com/risia/Project3-CUDA-Path-…
risia Sep 30, 2018
67db936
Stream compaction plots
risia Sep 30, 2018
424ecbe
Update README.md
risia Sep 30, 2018
2657c65
Example of DOF w/ FBC
risia Sep 30, 2018
7c2f314
Update README.md
risia Sep 30, 2018
6d15930
SSS Image
risia Sep 30, 2018
0ffa9fd
Update README.md
risia Sep 30, 2018
96505aa
Update README.md
risia Sep 30, 2018
e47ff44
Update README.md
risia Sep 30, 2018
3c53c4e
Update README.md
risia Sep 30, 2018
4cca896
Fixed rng issue in SSS, added images
risia Sep 30, 2018
fb3b3cb
Update README.md
risia Sep 30, 2018
be75121
Merge branch 'master' of https://github.com/risia/Project3-CUDA-Path-…
risia Sep 30, 2018
f0a6bf8
Update README.md
risia Sep 30, 2018
50c3e66
Update README.md
risia Sep 30, 2018
fce03bd
Update README.md
risia Sep 30, 2018
a4c474d
Replaced image
risia Sep 30, 2018
9191e4d
Update README.md
risia Sep 30, 2018
342bdcc
Update README.md
risia Sep 30, 2018
427ea26
More smaple images
risia Oct 1, 2018
e27ce9a
Update README.md
risia Oct 1, 2018
352ff04
Performance Analysis
risia Oct 1, 2018
25b6b9d
Performance Analysis cropped
risia Oct 1, 2018
f92e42f
Performance Analysis cropped
risia Oct 1, 2018
918e107
Update README.md
risia Oct 1, 2018
df6fcd4
Update README.md
risia Oct 1, 2018
75d9ed1
Update README.md
risia Oct 1, 2018
e40c153
Update README.md
risia Oct 1, 2018
f95dec9
Performance Analysis Material Sort
risia Oct 1, 2018
a027198
Performance Analysis Material Sort
risia Oct 1, 2018
6673f1b
Update README.md
risia Oct 1, 2018
ba7717a
last push?
risia Oct 1, 2018
9002728
Merge branch 'master' of https://github.com/risia/Project3-CUDA-Path-…
risia Oct 1, 2018
bdf7744
Update README.md
risia Oct 1, 2018
e566075
Update README.md
risia Oct 1, 2018
6707422
Update README.md
risia Oct 1, 2018
3c5d09e
Last minute imperfect specular
risia Oct 1, 2018
1caa6bb
Update README.md
risia Oct 1, 2018
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 @@ -72,7 +72,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()

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

cuda_add_executable(${CMAKE_PROJECT_NAME}
Expand All @@ -82,7 +82,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 # TODO: uncomment if using your stream compaction
${CORELIBS}
)

Expand Down
159 changes: 152 additions & 7 deletions README.md

Large diffs are not rendered by default.

Binary file added img/DIFFUSE.2018-09-25_14-43-29z.313samp.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/DOFwFBC.2018-09-30_21-37-10z.373samp.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/REFLECT.2018-09-27_15-13-55z.163samp.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/ReflectRefractTest684sample.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/SampleScene1.2018-09-30_22-56-15z.574samp.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/big_DOF.2018-09-30_02-33-09z.770samp.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/closed_vs_open.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/compaction.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.2018-10-01_03-19-26z.279samp.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/refraction.2018-09-27_22-44-44z.124samp.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/refraction.2018-09-30_23-21-46z.501samp.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/refraction.2018-09-30_23-40-39z.3700samp.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/subsurface.2018-09-30_21-51-35z.602samp.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/test.2018-09-29_02-12-24z.83samp.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/test.2018-10-01_00-09-16z.339samp.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/wFBC.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/wFBC1_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/wFBC2.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/wFBC2_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/wMaterialSort2.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/woFBC.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/woFBC2.PNG
Binary file added img/woMaterialSort.PNG
Binary file added img/woMaterialSort2.PNG
171 changes: 171 additions & 0 deletions scenes/SampleScene.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 5

// 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 .98 .98 .98
SPECEX 0
SPECRGB .98 .98 .98
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

// Perfect Refractive white
MATERIAL 5
RGB .98 .98 .98
SPECEX 0
SPECRGB .98 .98 .98
REFL 0
REFR 1
REFRIOR 2
EMITTANCE 0

// Subsurface Blue
MATERIAL 6
RGB .9 .9 .98
SPECEX 0.02
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Reflective/Refractive Purple, Green spec
MATERIAL 7
RGB .98 0 .98
SPECEX 0.02
SPECRGB 0 0.98 0
REFL 1
REFR 1
REFRIOR 2
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
DEPTH 8
FILE SampleScene1
EYE 0 5 10
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 10 .01 10

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

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

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

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

// Reflective Sphere
OBJECT 6
sphere
material 4
TRANS -3 5 -1
ROTAT 0 0 0
SCALE 3 3 3

// Refractive Sphere
OBJECT 7
sphere
material 5
TRANS 3 5 -1
ROTAT 0 0 0
SCALE 3 3 3

// Reflect/Refractive Sphere
OBJECT 8
sphere
material 7
TRANS 0 8 -2
ROTAT 0 0 0
SCALE 3 3 3

// Reflect/Refractive Sphere
OBJECT 9
sphere
material 6
TRANS 0 2 0
ROTAT 0 0 0
SCALE 3 3 3
171 changes: 171 additions & 0 deletions scenes/SampleSceneCubes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 5

// 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 .98 .98 .98
SPECEX 0
SPECRGB .98 .98 .98
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

// Perfect Refractive white
MATERIAL 5
RGB .98 .98 .98
SPECEX 0
SPECRGB .98 .98 .98
REFL 0
REFR 1
REFRIOR 2
EMITTANCE 0

// Subsurface Blue
MATERIAL 6
RGB .9 .9 .98
SPECEX 0.02
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Reflective/Refractive Purple, Green spec
MATERIAL 7
RGB .98 0 .98
SPECEX 0.02
SPECRGB 0 0.98 0
REFL 1
REFR 1
REFRIOR 2
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
DEPTH 8
FILE SampleScene1
EYE 0 5 10
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 10 .01 10

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

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

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

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

// Reflective
OBJECT 6
cube
material 4
TRANS -3 5 -1
ROTAT 0 0 0
SCALE 3 3 3

// Refractive
OBJECT 7
cube
material 5
TRANS 3 5 -1
ROTAT 0 0 0
SCALE 3 3 3

// Reflect/Refractive
OBJECT 8
cube
material 7
TRANS 0 8 -2
ROTAT 0 0 0
SCALE 3 3 3

// Subsurface Scatter
OBJECT 9
cube
material 6
TRANS 0 2 0
ROTAT 0 0 0
SCALE 3 3 3
Loading