Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
cb45aec
intersection test (img write unsuccessful)
shrekshao Sep 17, 2015
effe9f4
merge kai update
shrekshao Sep 17, 2015
257a55b
pass intersection test
shrekshao Sep 18, 2015
e590480
basic feature pass test
shrekshao Sep 18, 2015
e8d6499
fix stream compaction exclude thread
shrekshao Sep 18, 2015
1422ba3
remove cos factor in diffuse
shrekshao Sep 18, 2015
89f71e7
kdtree untested
shrekshao Sep 21, 2015
d1d5788
Merge remote-tracking branch 'upstream/master' into kdtree
shrekshao Sep 21, 2015
e89bbbe
tiny change
shrekshao Sep 21, 2015
65d8a04
tail upadate
shrekshao Sep 23, 2015
1d857dd
merge upstream 09 23
shrekshao Sep 23, 2015
fc7b41d
pathtrace.cu fix
shrekshao Sep 23, 2015
f741e76
merge master
shrekshao Sep 23, 2015
9909eb0
work-efficient stream compaction, not yet pass test
shrekshao Sep 26, 2015
479f0a3
multi block scan fix step 1
shrekshao Sep 26, 2015
fd36427
work efficient stream compaction, pass small case test
shrekshao Sep 26, 2015
35cdc11
delete test code, try fix edge = 1 scan bug
shrekshao Sep 26, 2015
29b92b8
add back test code, pass multiblock test
shrekshao Sep 26, 2015
cc2b19d
cudaDeviceSync fix, still racing on large array
shrekshao Sep 26, 2015
2b7a89b
test using macro
shrekshao Sep 26, 2015
b589631
refraction and lens effect
shrekshao Sep 27, 2015
4f74156
obj loader first try
shrekshao Sep 27, 2015
40a1e7f
obj loader pass test
shrekshao Sep 27, 2015
3c0ee80
merge master
shrekshao Sep 28, 2015
ec1e6db
take kdtree code to separate file
shrekshao Sep 28, 2015
78441a9
kd tree leaf node multi geom building, flip camera left right
shrekshao Sep 28, 2015
02fcb27
fix unsafe reference cur
shrekshao Sep 28, 2015
f453d16
geom idx vector, kdtree parse modify, untested
shrekshao Sep 28, 2015
d3c0acb
dead loop message and exit
shrekshao Sep 28, 2015
8f9ae23
fix geom id access in kdtree leaf
shrekshao Sep 29, 2015
e216bac
fix release exception
shrekshao Sep 29, 2015
c4c5ca5
kd tree hit test code
shrekshao Sep 29, 2015
55a7fe2
backtrack modify
shrekshao Sep 29, 2015
fa5afc6
tiny change
shrekshao Sep 29, 2015
2c5376d
fix backtrack deadlock
shrekshao Sep 29, 2015
87b894d
add depth hit test code
shrekshao Sep 29, 2015
770e84f
img, material size fix
shrekshao Sep 30, 2015
e025afd
readme
shrekshao Sep 30, 2015
15b778f
readme fix and switch to 32 work efficient compaction
shrekshao Sep 30, 2015
1e5f6d1
update README
shrekshao Sep 30, 2015
b0b5e07
fix obj normal vec 4 = 0
shrekshao 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: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -558,3 +558,7 @@ xcuserdata
*.xccheckout
*.moved-aside
*.xcuserstate


#my
test_img
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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 @@ -78,7 +78,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
401 changes: 93 additions & 308 deletions README.md

Large diffs are not rendered by default.

Binary file added img/kdtree_depth0.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/kdtree_depth1.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/kdtree_depth2.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/kdtree_wrong.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/lens.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/master_depth0.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/master_depth1.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/master_depth2.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/numPathRays.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.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_note.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/teapot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
181 changes: 181 additions & 0 deletions scenes/cornell_open.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
// Material----------------------------------------------------------------

// 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 1 1 1
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

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

// Diffuse green
MATERIAL 3
RGB .35 .85 .35
SPECEX 0
SPECRGB 1 1 1
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

// refraction glass
MATERIAL 5
RGB 0 0 0
SPECEX 0
SPECRGB .98 .98 .98
REFL 0
REFR 1
REFRIOR 1.2
EMITTANCE 0

// Emissive material (light)
MATERIAL 6
RGB 1 1 0
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 5

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

// Diffuse
MATERIAL 8
RGB .5 .1 .5
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Diffuse
MATERIAL 9
RGB .2 .6 .2
SPECEX 0
SPECRGB 1 1 1
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0


// Scene -----------------------------------------------------------

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
DEPTH 8
FILE cornell
EYE 0.0 5 10.5
VIEW 0 0 -1
UP 0 1 0
// LENS_RADIUS 1.1
// FOCAL_LENGTH 8.5

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

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

// Sphere glass
OBJECT 2
sphere
material 4
TRANS .2 4 2
ROTAT 0 0 0
SCALE 3 3 3

// back light
OBJECT 3
cube
material 6
TRANS 0 5 -5
ROTAT 0 0 0
SCALE 1 3 .3

//small blue cube
OBJECT 4
cube
material 7
TRANS 3 3 -2
ROTAT 0 30 0
SCALE 1 1 1

//cube
OBJECT 5
cube
material 1
TRANS -3.5 6 4
ROTAT 10 60 0
SCALE 2 2 2

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

// Sphere
OBJECT 7
sphere
material 3
TRANS 2 1.5 4
ROTAT 0 0 0
SCALE 1 1 1
Loading