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: Ruoyu Fan #22

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
066b798
removed "using namespace std" from header files
WindyDarian Sep 29, 2016
ffcaa7b
Merge remote-tracking branch 'upstream/master'
WindyDarian Sep 29, 2016
f5f00ad
CMakeLists.txt for ubuntu
WindyDarian Sep 30, 2016
16c9486
Merge branch 'master' of https://github.com/WindyDarian/Project3-CUDA…
WindyDarian Sep 30, 2016
b31187d
added the very first screenshot and files from homework 2 - stream co…
WindyDarian Sep 30, 2016
da048c4
oooo
WindyDarian Sep 30, 2016
bebcd74
ooooooooooo
WindyDarian Sep 30, 2016
1a842ae
Merge remote-tracking branch 'upstream/master'
WindyDarian Sep 30, 2016
fd69509
some changes
WindyDarian Oct 1, 2016
d8ff60d
diffusive path tracing
WindyDarian Oct 2, 2016
fba5ff0
space to tab
WindyDarian Oct 2, 2016
a7755c5
switching to vs2015 and source version of glfw
WindyDarian Oct 2, 2016
12a4fde
diffuse
WindyDarian Oct 2, 2016
97d46e2
wait what did I do
WindyDarian Oct 3, 2016
cb6ec9d
fix merge conflict. BUT WHY IS MY SCENE BLACK!!!!
WindyDarian Oct 3, 2016
364b29f
yay it is working again
WindyDarian Oct 3, 2016
efdf66d
perfect specular
WindyDarian Oct 3, 2016
587d707
not passing path_segment.remainingBounces out
WindyDarian Oct 3, 2016
c1efd89
what
WindyDarian Oct 4, 2016
fb5e57b
ShadeableIntersection becomes part of PathSegment
WindyDarian Oct 5, 2016
b0765dc
it is supposed to be working but I am getting some weird error?
WindyDarian Oct 5, 2016
4492fef
ummmm
WindyDarian Oct 5, 2016
cce8095
stream compaction tested
WindyDarian Oct 5, 2016
dddcc93
updated FindCuda.cmake module to fix linker error in CUDA 8.0
WindyDarian Oct 5, 2016
34ab6a9
readme
WindyDarian Oct 5, 2016
fcc5f20
Okay, intersections are again not part of path segments
WindyDarian Oct 5, 2016
e38a634
final gather to partial gather, and I am interested in testing someth…
WindyDarian Oct 5, 2016
9e39d73
sort by material id
WindyDarian Oct 8, 2016
da8294d
Part 1 - Core Features Done
WindyDarian Oct 8, 2016
b80cde0
time measurement code
WindyDarian Oct 8, 2016
86b0549
Data for part 1 - core features
WindyDarian Oct 8, 2016
ca94d4c
data for core features
WindyDarian Oct 8, 2016
7507c07
basic feature done
WindyDarian Oct 8, 2016
d0b162d
link
WindyDarian Oct 8, 2016
648187f
Update README.md
WindyDarian Oct 8, 2016
db047d1
Update README.md
WindyDarian Oct 8, 2016
ac591e2
Tested on my laptop
WindyDarian Oct 8, 2016
795e156
fixed blurry chart
WindyDarian Oct 8, 2016
62c16b2
Sort paths by sorting indices then reshuffle instead of sorting in place
WindyDarian Oct 9, 2016
90f4be4
ummm...will this look better in this way?
WindyDarian Oct 9, 2016
93a7fdd
changed again
WindyDarian Oct 9, 2016
1503e22
remove unclear texts
WindyDarian Oct 9, 2016
3d710e4
xlsx
WindyDarian Oct 9, 2016
5f51d8b
Additional Test: Access Structs in Global Memory vs Copy to Local Mem…
WindyDarian Oct 9, 2016
06e602f
guess i will just include stream compaction in src if i'll do it
WindyDarian Oct 9, 2016
a714b89
oh I have done that
WindyDarian Oct 9, 2016
44ac0e7
additional optimization by performance freak
WindyDarian Oct 9, 2016
eff3bb6
ooooo I still have 8 hours?
WindyDarian Oct 9, 2016
2d7e014
loading mesh
WindyDarian Oct 10, 2016
079452c
that's it
WindyDarian Oct 11, 2016
9288a46
ohhhhhhhhhhhh
WindyDarian Oct 11, 2016
1f3f864
it seems to be it
WindyDarian Oct 11, 2016
80109bb
readme quick fix
WindyDarian Oct 11, 2016
78c0788
should build on vs2013
WindyDarian Oct 11, 2016
8c7b419
renders
WindyDarian Oct 11, 2016
e0944fa
Thanks Peng Liang, fixing refraction
WindyDarian Oct 13, 2016
500d2fa
some images fixed
WindyDarian Oct 13, 2016
d940f23
Thanks Liang
WindyDarian Oct 13, 2016
8c89f02
fixed renders
WindyDarian Oct 14, 2016
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
31 changes: 20 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
cmake_minimum_required(VERSION 3.0)

project(cis565_path_tracer)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/cmake")

# Set up include and lib paths
set(EXTERNAL "external")
include_directories("${EXTERNAL}")
include_directories("${EXTERNAL}/include")
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(EXTERNAL_LIB_PATH "${EXTERNAL}/lib/osx")
Expand All @@ -18,13 +16,18 @@ endif()
link_directories(${EXTERNAL_LIB_PATH})
list(APPEND CMAKE_LIBRARY_PATH "${EXTERNAL_LIB_PATH}")

# Configure GLFW
set(GLFW_ROOT_DIR "${EXTERNAL}/glfw-3.2.1")
# We don't need documents, tests, etc..
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(GLFW_INSTALL OFF CACHE BOOL "" FORCE)
add_subdirectory(${GLFW_ROOT_DIR})
include_directories("${GLFW_ROOT_DIR}/include")
SET(GLFW_LIBRARY glfw)

# Find up and set up core dependency libs

set(GLFW_INCLUDE_DIR "${EXTERNAL}/include")
set(GLFW_LIBRARY_DIR "${CMAKE_LIBRARY_PATH}")
find_library(GLFW_LIBRARY "glfw3" HINTS "${GLFW_LIBRARY_DIR}")

set(GLEW_INCLUDE_DIR "${EXTERNAL}/include")
set(GLEW_LIBRARY_DIR "${CMAKE_LIBRARY_PATH}")
add_definitions(-DGLEW_STATIC)
Expand All @@ -43,6 +46,7 @@ set(CMAKE_CXX_STANDARD 11)

# Enable CUDA debug info in debug mode builds
list(APPEND CUDA_NVCC_FLAGS_DEBUG -G -g)
list(APPEND CUDA_NVCC_FLAGS "-std=c++11")

# OSX-specific hacks/fixes
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand All @@ -53,7 +57,14 @@ endif()

# Linux-specific hacks/fixes
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
list(APPEND CMAKE_EXE_LINKER_FLAGS "-lX11 -lXxf86vm -lXrandr -lXi")
find_library(x11 NAMES X11)
find_library(xrandr NAMES Xrandr)
find_library(xi NAMES Xi)
find_library(xxf86vm NAMES Xxf86vm)
list(APPEND CORELIBS ${x11})
list(APPEND CORELIBS ${xrandr})
list(APPEND CORELIBS ${xi})
list(APPEND CORELIBS ${xxf86vm})
endif()

# Crucial magic for CUDA linking
Expand All @@ -68,7 +79,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()

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

cuda_add_executable(${CMAKE_PROJECT_NAME}
Expand All @@ -78,7 +88,6 @@ cuda_add_executable(${CMAKE_PROJECT_NAME}

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

Expand Down
3 changes: 2 additions & 1 deletion Project3-CUDA-Path-Tracer.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_ID" value="com.nvidia.cuda.ide.debug.cudagdb"/>
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_START_MODE" value="run"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_ARGUMENTS" value="scenes/sphere.txt"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_ARGUMENTS" value="scenes/cornell.txt"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="build/cis565_path_tracer"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="Project3-CUDA-Path-Tracer"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
Expand All @@ -18,5 +18,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;/&gt;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>
246 changes: 241 additions & 5 deletions README.md

Large diffs are not rendered by default.

161 changes: 0 additions & 161 deletions cmake/CMakeParseArguments.cmake

This file was deleted.

11 changes: 11 additions & 0 deletions external/cmake/CMakeParseArguments.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.

#.rst:
# CMakeParseArguments
# -------------------
#
# This module once implemented the :command:`cmake_parse_arguments` command
# that is now implemented natively by CMake. It is now an empty placeholder
# for compatibility with projects that include it to get the command from
# CMake 3.4 and lower.
Loading