Rendered at 1spp. Left: Default PT; Right: NRC.
8 |
9 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Topmost EditorConfig file; do not look at files higher up in the directory tree
2 | root = true
3 |
4 | # Set default editor config for all files:
5 | # - 4 spaces, no trailing whitespaces
6 | # - final newline for slightly cleaner diffs when changing the last line
7 | # - native end-of-line in case we want to open a file elsewhere, git converts to LF for non-Windows
8 | # - use utf-8 as default
9 | [*]
10 | indent_size = 4
11 | indent_style = space
12 | trim_trailing_whitespace = true
13 | insert_final_newline = true
14 | end_of_line = crlf
15 | charset = utf-8
16 |
17 | # Override trailing whitespace setting for Markdown since there it's actually useful
18 | [*.{md}]
19 | trim_trailing_whitespace = false
20 |
21 | # Override settings for project files to use the same settings as Visual Studio
22 | [*.{vcxproj,vcxproj.filters}]
23 | indent_size = 2
24 | insert_final_newline = false
25 |
--------------------------------------------------------------------------------
/Build/packman/bootstrap/generate_temp_folder.ps1:
--------------------------------------------------------------------------------
1 | <#
2 | Copyright 2019 NVIDIA CORPORATION
3 |
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 | You may obtain a copy of the License at
7 |
8 | http://www.apache.org/licenses/LICENSE-2.0
9 |
10 | Unless required by applicable law or agreed to in writing, software
11 | distributed under the License is distributed on an "AS IS" BASIS,
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | See the License for the specific language governing permissions and
14 | limitations under the License.
15 | #>
16 |
17 | param(
18 | [Parameter(Mandatory=$true)][string]$parentPath=$null
19 | )
20 | [string] $name = [System.Guid]::NewGuid()
21 | $out = Join-Path $parentPath $name
22 | New-Item -ItemType Directory -Path ($out) | Out-Null
23 | Write-Host $out
24 |
--------------------------------------------------------------------------------
/Source/RenderPasses/NRCPathTracer/Data/default_nrc_new.json:
--------------------------------------------------------------------------------
1 | {
2 | "loss": {
3 | "otype": "RelativeL2"
4 | },
5 | "optimizer": {
6 | "otype": "Ema",
7 | "decay": 0.99,
8 | "nested": {
9 | "otype": "Adam",
10 | "learning_rate": 4.5e-3,
11 | "beta1": 0.9,
12 | "beta2": 0.99,
13 | "epsilon": 1e-8,
14 | "l2_reg": 1e-8
15 | }
16 | },
17 | "encoding": {
18 | "otype": "Composite",
19 | "nested":[
20 | {
21 | "n_dims_to_encode": 3,
22 | "otype": "TriangleWave",
23 | "n_frequencies": 12
24 | },
25 | {
26 | "n_dims_to_encode": 5,
27 | "otype": "OneBlob",
28 | "n_bins": 4
29 | },
30 | {
31 | "n_dims_to_encode": 6,
32 | "otype": "Identity"
33 | }
34 | ]
35 | },
36 | "network": {
37 | "otype": "FullyFusedMLP",
38 | "activation": "ReLU",
39 | "output_activation": "None",
40 | "n_neurons": 64,
41 | "n_hidden_layers": 5,
42 | "n_input_dims": 5,
43 | "n_output_dims": 3
44 | }
45 | }
--------------------------------------------------------------------------------
/Build/packman/python.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Copyright 2019-2020 NVIDIA CORPORATION
4 |
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 |
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | set -e
18 |
19 | PACKMAN_CMD="$(dirname "${BASH_SOURCE}")/packman"
20 | if [ ! -f "$PACKMAN_CMD" ]; then
21 | PACKMAN_CMD="${PACKMAN_CMD}.sh"
22 | fi
23 | source "$PACKMAN_CMD" init
24 | export PYTHONPATH="${PM_MODULE_DIR}:${PYTHONPATH}"
25 | export PYTHONNOUSERSITE=1
26 | "${PM_PYTHON}" -u "$@"
27 |
--------------------------------------------------------------------------------
/Source/RenderPasses/NRCVoxelPT/Debug/NRCPixelStats.slang:
--------------------------------------------------------------------------------
1 | /** Functionality for collecting runtime stats in the path tracer.
2 |
3 | The host sets the following defines:
4 |
5 | _NRC_PIXEL_STATS_ENABLED Nonzero if stats should be collected.
6 |
7 | */
8 | __exported import NRCPixelStatsShared;
9 |
10 | RWTexture2D