Skip to content

Commit 81f62ac

Browse files
committed
Added Light BVH and OIDN
Modification to primary NEE rays for better compression Fixes for ReSTIR GI that work better with complex materials Saving now automatically clears parentobjects Added OIDN support Added a lot more material options/settings Switched back to linear interpolation for albedo Added frame count for OIDN and firefly Added firefly strength Minor changes to ReSTIR GI ASVGF to fit better Added clay mode color Added ability for meshes whos material count has changed to retain their data Added ground Added ground color New stars Fixed directional lights Added light BVH from PBRT V4 Potential large performance improvement Added multi pass restir GI Redid material saving Fixed Ding not saving Added global toggle for material saving Added hue, saturation, contrast , and brightness per material Added absolute screenshot file path Smoothness is now per-object instead of material-wide Fixed texture scaling Added AgX
1 parent 552c3d5 commit 81f62ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+15660
-3882
lines changed

Images/Yanus0.png

3.66 MB
Loading

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](/Images/ArchRender0.png)
1+
![](/Images/Yanus0.png)
22
# If you like what I do and want to support me and this project(as this takes a LOT of my time), Please consider becoming a Github Sponsor or a Patron at patreon.com/Pjbomb2! This allows me to keep this free for everyone!
33
# Discord Server: https://discord.gg/4Yh7AZuhcD
44
## Demo: https://drive.google.com/file/d/1sb_zRycX23AlC3QQ9LfqrtEZzBj47Z-Y/view?usp=sharing
@@ -76,6 +76,7 @@ Camera Controls: WASD, Mouse, hold right click rotate the camera, and shift incr
7676
<li>If you are using blendshapes to change geometry of a skinned mesh, you may need to go to the import settings of it(in the inspector), turn off Legacy Blendshape Normals, and make sure all normals are imported, not calculated, otherwise the normals for blendshapes might be wrong</li>
7777
<li>A fun thing you may want to do is go to TrueTrace -> Resources -> RenderPipelines -> RendererHandle, and uncomment the "[ImageEffectOpaque]"</li>
7878
<li>If you use HDRIs, or CubeMaps for the skybox, you need to format as the texture to a cube shape in the inspector of the image, unity will convert it automatically, then put it in the slot in Scene Settings</li>
79+
<li>With multi-pass ReSTIR GI, the additional passes for spatial are in the RayTracingMaster script, where you can add more to the "Spatials" array. X is spatial sample count, Y is spatial sample radius.</li>
7980
</ul>
8081

8182
## Using Instancing
@@ -124,11 +125,11 @@ Camera Controls: WASD, Mouse, hold right click rotate the camera, and shift incr
124125
</ul>
125126

126127
## Editor Window Guide
127-
BVH Options Description -
128+
TrueTrace Options Description -
128129
<ul>
129130
<li>Build Aggregated BVH(Recommended to do any time you change objects in edit mode)- Allows you to pre-build objects BVH's before running so you dont have to wait every time you go into play mode for it to build.</li>
130-
<li>Clear Parent Data - Clears the data stored in parent GameObjects, allowing you to actually click them without lagging, and for you to save the scene(but will then require the BVH to be rebuilt)</li>
131-
<li>Take Screenshot - Takes a screenshot to Assets/ScreenShots folder(Will be created if missing)</li>
131+
<li>Clear Parent Data - Clears the data stored in parent GameObjects, allowing you to actually click them without lagging</li>
132+
<li>Take Screenshot - Takes a screenshot to the path under "Functionality Settings" in the TrueTrace options</li>
132133
<li>Auto Assign Scripts - Assigns all required scripts to all objects under the Scene GameObject, best way to add objects</li>
133134
<li>Make All Static - Utility button that takes all objects in the scene and puts them under one parent object, not recommended for general use</li>
134135
<li>Force Instances - Looks at all meshes in the scene, sees what objects have the same meshes, and makes them into instances, keep in mind instances use the same material and textures</li>
@@ -152,7 +153,6 @@ BVH Options Description -
152153
<li>Update Rate - How many pixels per frame get re-traced to ensure they are still valid paths(7 or 33 is a good number to aim for here at 1080p)</li>
153154
<li>Enable Temporal - Enables the Temporal pass of ReSTIR GI(allows samples to travel across time</li>
154155
<li>Temporal M Cap - How long a sample may live for, lower means lighting updates faster(until 0 which is the opposite) but more noise(recommended either 0 or around 12, but can be played with)</li>
155-
<li>Enable Denoiser - Enables a custom denoiser that is more tuned for ReSTIR GI</li>
156156
<li>Enable Spatial - Enables the Spatial pass of ReSTIR GI(Allows pixels to choose to use the neighboring pixels sample instead)</li>
157157
<li>Spatial Sample Count - How many neighboring pixels are looked at(turn to 0 to make it adapative to sample count)</li>
158158
<li>Minimum Spatial Radius - The minimum radius the spatial pass can sample from</li>
@@ -278,6 +278,7 @@ Scenes From:
278278
Disney BSDF from: https://schuttejoe.github.io/post/disneybsdf/
279279
Rectangle packer for faster atlas creation from here: https://github.com/ThomasMiz/RectpackSharp/tree/main/RectpackSharp
280280
GPU Texture Compression: https://github.com/aras-p/UnityGPUTexCompression
281+
OIDN Wrapper: https://github.com/guoxx/UnityDenoiserPlugin
281282

282283
This project uses:
283284
Crytek Sponza

TrueTrace.unitypackage

20.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)