-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f78ac5a
commit 15f0d34
Showing
9 changed files
with
512 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# specify the version of cmake (intentionally using old version for those who cannot update CMake) | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
############################# | ||
# set C++ detail | ||
enable_language(CXX) # we are using C++ | ||
set(CMAKE_CXX_STANDARD 17) # we are using C++ 17 | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) # we are using STL library | ||
|
||
############################# | ||
# set project name | ||
|
||
project(task07) | ||
|
||
############################# | ||
# define macro | ||
add_definitions(-DPROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}") | ||
|
||
############################# | ||
# specifying libraries to use | ||
|
||
######################## | ||
# include, build, and link | ||
|
||
include_directories( | ||
${PROJECT_SOURCE_DIR}/../external | ||
${PROJECT_SOURCE_DIR}/../external/eigen | ||
) | ||
|
||
add_executable(${PROJECT_NAME} | ||
main.cpp | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Task07: Multiple Importance Sampling (Brdf sampling, Light sampling) | ||
|
||
 | ||
|
||
**Deadline: June 6th (Thu) at 15:00pm** | ||
|
||
---- | ||
|
||
## Before Doing Assignment | ||
|
||
If you have not done the [task01](../task01), [task02](../task02) do it first to set up the C++ development environment. | ||
|
||
Follow [this document](../doc/submit.md) to submit the assignment, In a nutshell, before doing the assignment, | ||
- make sure you synchronized the `main ` branch of your local repository to that of remote repository. | ||
- make sure you created branch `task07` from `main` branch. | ||
- make sure you are currently in the `task07` branch (use `git branch -a` command). | ||
|
||
Now you are ready to go! | ||
|
||
--- | ||
|
||
## Problem | ||
|
||
- Implement light sampling by lighting a single line code around `line #364` | ||
- Implement Brdf sampling by lighting a single line code around `line #383` | ||
- Implement MIS sampling by lighting a few lines of code around `line #401` around `line #403` | ||
|
||
Run the program with **Release mode** and it will generate three images that replace the images below. | ||
|
||
| Light sampling | Brdf sampling | MIS sampling | | ||
| ----------------------- | ------------------------ | ------------------------ | | ||
|  |  |  | | ||
|
||
Observe that three image looks similar but the noise is reduced by MIS sampling. | ||
|
||
|
||
|
||
|
||
## After Doing the Assignment | ||
|
||
After modify the code, push the code and submit a pull request. Make sure your pull request only contains the files you edited. Good luck! |
Oops, something went wrong.