Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f15617d
pure diffuse, w/ some bugs still
Sep 21, 2015
6608d7b
working!
Sep 21, 2015
cfbad76
fix scatter attenuation; add glossy
Sep 22, 2015
9e90fb9
antialiasing
Sep 22, 2015
f1ff5ce
refraction!
Sep 22, 2015
b69d33a
some images
Sep 22, 2015
0553246
SSS!
Sep 23, 2015
9d0c8d1
milestone - no custom stream compaction
Sep 23, 2015
dcf034c
SSS on reflective material
Sep 23, 2015
493865f
minor fix
Sep 23, 2015
e8a6981
comments and minor code clean up
Sep 23, 2015
7498e2f
remove SSS spec artifacts
Sep 23, 2015
4f391e9
fix critical antialiasing bug
Sep 23, 2015
d553193
single block scan
Sep 24, 2015
d0e1257
custom work-eff stream compaction
Sep 24, 2015
81ee506
performance baseline
Sep 24, 2015
a1ddec5
optimization: scan, intersect
Sep 25, 2015
5a30cac
opt: intersect
Sep 25, 2015
d4207b7
opt: scan scatter
Sep 25, 2015
238b866
opt: misc func
Sep 25, 2015
8e8dede
opt: ray cast init
Sep 25, 2015
ef024fc
stats
Sep 25, 2015
4316751
analysis
Sep 25, 2015
47dc5d9
Update README.md
Sep 25, 2015
cdb0995
Update README.md
Sep 25, 2015
98f1c2c
Update README.md
Sep 25, 2015
def22dd
Update README.md
Sep 25, 2015
7c5d812
Update README.md
Sep 25, 2015
b3b82f1
Update README.md
Sep 25, 2015
abea3fd
2ms faster
Sep 25, 2015
5c342f2
even faster! remove extra cuda calls
Sep 25, 2015
eedc7a7
faster! refactored intersection test, faster scatter
Sep 25, 2015
54bfdcd
minor refactors
Sep 25, 2015
1575152
analysis update
Sep 26, 2015
52f7d18
revert intersection test refactor due to weird render bug
Sep 26, 2015
752cbf4
Merge pull request #1 from StoneBird/faster_scan_scatter
Sep 26, 2015
fc31251
Update README.md
Oct 7, 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
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CUDA_PROPAGATE_HOST_FLAGS OFF)
endif()

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

cuda_add_executable(${CMAKE_PROJECT_NAME}
Expand All @@ -77,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
521 changes: 245 additions & 276 deletions README.md

Large diffs are not rendered by default.

Binary file removed img/REFERENCE_cornell.5000samp.png
Binary file not shown.
Binary file added img/aliased.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/antialiased.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/antialiasing_comparison.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/baseline.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_scene.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/comparison.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/comparison_new.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/depth_of_field.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/diff_spec.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/diffuse_check.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/dof_comparison.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/hit_normal.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/ior_comparision.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/open_comparison.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/optimized.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/optimized_new.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/ray_count.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/raycast_debug.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/raycasting.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/refract_diamond.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/refract_ice.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/scan_occupacy.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/specs.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/sss_check.png
Binary file added img/sss_comparison.png
Binary file added img/sss_distance_cube.png
Binary file added img/sss_distance_sphere.png
Binary file added img/sss_fun.png
Binary file added img/sss_refl_comparison.png
Binary file added img/sss_reflection.png
2 changes: 1 addition & 1 deletion scenes/cornell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ sphere
material 1
TRANS -1 4 -1
ROTAT 0 0 0
SCALE 3 3 3
SCALE 3 3 3
206 changes: 206 additions & 0 deletions scenes/cornell1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
// Emissive material (light)
MATERIAL 0
RGB 1 1 1
SPECEX 0
SPECRGB 0 0 0
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 1.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 30
SPECRGB 1 1 1
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

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

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

// Glossy material
MATERIAL 5
RGB .35 .35 .85
SPECEX 5
SPECRGB .8 .8 .8
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

// Glossy material
MATERIAL 6
RGB .35 .85 .35
SPECEX 0
SPECRGB .8 .8 .8
REFL 0
REFR 0
REFRIOR 0
EMITTANCE 0

// Mirror white
MATERIAL 7
RGB .98 .98 .98
SPECEX 100
SPECRGB 1 1 1
REFL 1
REFR 0
REFRIOR 0
EMITTANCE 0

// Refraction
MATERIAL 8
RGB .847 .949 .9529
SPECEX 1000
SPECRGB 1 1 1
REFL 0
REFR 1
REFRIOR 1.309
EMITTANCE 0

// Camera
CAMERA
RES 800 800
FOVY 45
ITERATIONS 5000
DEPTH 8
FILE cornell
EYE 0.0 5 14
VIEW 0 0 -1
UP 0 1 0
DOF 9


// 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.5 0
ROTAT 0 0 0
SCALE 10 1 10

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

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

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

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

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

// Back light
OBJECT 7
cube
material 4
TRANS 0 5 -5
ROTAT 0 0 0
SCALE 1 7 .3

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

// Cube
OBJECT 9
cube
material 8
TRANS -2 1 2
ROTAT 45 45 0
SCALE 1 1 1

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

// Sphere
OBJECT 11
sphere
material 8
TRANS 0.5 5 5
ROTAT 0 0 0
SCALE 2 2 2

// Sphere
OBJECT 12
sphere
material 8
TRANS 0 1 0
ROTAT 0 0 0
SCALE 1 1 1
Loading