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

Submission: Levi Cai #10

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0a58e9f
Initial ray tracer implemented
arizonat Sep 17, 2015
31fc5ac
Began implementing path tracing
arizonat Sep 18, 2015
d489aa4
Just making sure things work
arizonat Sep 18, 2015
66b7c61
Merging with upstream changes
arizonat Sep 20, 2015
0521ccb
Vaguely working 1 bounce, crashes after many iterations
arizonat Sep 20, 2015
d27e097
Release mode only with strange black patches working
arizonat Sep 20, 2015
237cc32
merged in cuda error checking
arizonat Sep 20, 2015
9de66ce
One smal cudafree
arizonat Sep 20, 2015
153770a
Got rid of large black square...still some artifacting thogh
arizonat Sep 21, 2015
cb7dba2
Working Release mode with thicker walls
arizonat Sep 21, 2015
4e6b1ed
Moved colors into ray struct
arizonat Sep 21, 2015
53b3489
Simple working 1D grids and blocks with 512 threads only in Release
arizonat Sep 21, 2015
40c3f7c
Added stream compaction code
arizonat Sep 21, 2015
15e95a5
Merged in Kai hotfixes
arizonat Sep 21, 2015
bbd4e0b
Additional merging from Kai's hotfix
arizonat Sep 21, 2015
f0aaf9b
Something broken at the moment...
arizonat Sep 22, 2015
31d703a
Partially implemented shared memory stream compaction
arizonat Sep 24, 2015
781a90a
Issues with inclusive vs exclusive scans
arizonat Sep 24, 2015
47a2b48
Finished compaction yay
arizonat Sep 24, 2015
1a8d4c8
merging in work efficient compaction
arizonat Sep 25, 2015
95c45f8
Added a new sphere to the demo
arizonat Sep 27, 2015
5fad97e
Added depth of field
arizonat Sep 28, 2015
50e33f7
nonworking refraction implemented
arizonat Sep 29, 2015
63fb8fb
Fully implemented motion blur
arizonat Sep 29, 2015
b323fe3
Mostly working refraction
arizonat Sep 30, 2015
76af760
Normalized directions everywhere
arizonat Sep 30, 2015
da65ea6
Adding some renders
arizonat Sep 30, 2015
78672b7
Fixed aperture from files
arizonat Sep 30, 2015
9126004
Update README.md
arizonat Sep 30, 2015
54c2384
Update README.md
arizonat Sep 30, 2015
7e10513
Update README.md
arizonat Sep 30, 2015
ebdea53
Update README.md
arizonat Sep 30, 2015
a93a3b6
Update README.md
arizonat Sep 30, 2015
87fa2a3
Removed sync calls and added specular example
arizonat Sep 30, 2015
a43ad56
Merge branch 'master' of https://github.com/arizonat/Project3-CUDA-Pa…
arizonat Sep 30, 2015
74e7bec
Update README.md
arizonat Sep 30, 2015
07757e5
Update README.md
arizonat Sep 30, 2015
63bbd67
Performance analysis graph
arizonat Sep 30, 2015
b03f632
Update README.md
arizonat Sep 30, 2015
8399c89
Merge branch 'master' of https://github.com/arizonat/Project3-CUDA-Pa…
arizonat Sep 30, 2015
ee0e139
Update README.md
arizonat Sep 30, 2015
c48f2f8
Adding more performance tests
arizonat Sep 30, 2015
f77508f
Merge branch 'master' of https://github.com/arizonat/Project3-CUDA-Pa…
arizonat Sep 30, 2015
4721b3b
Update README.md
arizonat Sep 30, 2015
06cee3d
Update README.md
arizonat Sep 30, 2015
7fd7f95
Update README.md
arizonat Sep 30, 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) # TODO: uncomment if using your 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 # TODO: uncomment if using your stream compaction
${CORELIBS}
)

Expand Down
301 changes: 23 additions & 278 deletions README.md

Large diffs are not rendered by default.

Binary file added img/cornell.2015-09-30_00-35-22z.1773samp.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_alive_vs_depth.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_bounce.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_dof.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_glass.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_initial_vs_time.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_specular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 29 additions & 9 deletions scenes/cornell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 5
EMITTANCE 10

// Diffuse white
MATERIAL 1
RGB .98 .98 .98
SPECEX 0
SPECRGB 1 1 1
SPECRGB 0.01 0.01 0.01
REFL 0
REFR 0
REFRIOR 0
Expand All @@ -22,7 +22,7 @@ EMITTANCE 0
MATERIAL 2
RGB .85 .35 .35
SPECEX 0
SPECRGB 1 1 1
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
Expand All @@ -32,6 +32,16 @@ EMITTANCE 0
MATERIAL 3
RGB .35 .85 .35
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Mirror white
MATERIAL 4
RGB .01 .01 .01
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
Expand All @@ -45,6 +55,8 @@ FOVY 45
ITERATIONS 5000
DEPTH 8
FILE cornell
FOCAL 11.5
APERTURE 0.1
EYE 0.0 5 10.5
VIEW 0 0 -1
UP 0 1 0
Expand Down Expand Up @@ -72,36 +84,44 @@ cube
material 1
TRANS 0 10 0
ROTAT 0 0 90
SCALE .01 10 10
SCALE .1 10 10

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

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

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

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

// Sphere
OBJECT 7
sphere
material 1
TRANS 0 5 1
ROTAT 0 0 0
SCALE 2 2 2
136 changes: 136 additions & 0 deletions scenes/cornell_move.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 10

// Diffuse white
MATERIAL 1
RGB .98 .98 .98
SPECEX 0
SPECRGB 0.01 0.01 0.01
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

// Mirror white
MATERIAL 4
RGB .01 .01 .01
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
DEPTH 8
FILE cornell
FOCAL 11.5
APERTURE 0.5
EYE 0.0 5 10.5
VIEW 0 0 -1
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 .1 10 10

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

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

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

// Sphere background
OBJECT 6
sphere
material 1
TRANS -1 2 -3
ROTAT 0 0 0
SCALE 3 3 3

// Sphere focused
OBJECT 7
sphere
material 3
TRANS 0 5 1
ROTAT 0 0 0
SCALE 2 2 2

// Sphere moving
OBJECT 8
sphere
material 2
TRANS 3 4 -3
ROTAT 0 0 0
SCALE 3 3 3
MOVETO 3 1 -3
137 changes: 137 additions & 0 deletions scenes/cornell_refraction.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 10

// Diffuse white
MATERIAL 1
RGB .98 .98 .98
SPECEX 0
SPECRGB 0.01 0.01 0.01
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

// Mirror white
MATERIAL 4
RGB .01 .01 .01
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Glass
MATERIAL 5
RGB .98 .98 .98
SPECEX 0
SPECRGB 0.1 0.1 0.1
REFL 0
REFR 1
REFRIOR 1.52
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
DEPTH 8
FILE cornell
FOCAL 11.5
APERTURE 0.25
EYE 0.0 5 10.5
VIEW 0 0 -1
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 .1 10 10

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

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

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

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

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