Update Documentation
This commit is contained in:
parent
3465e08c77
commit
444f011a43
8 changed files with 14 additions and 16 deletions
|
|
@ -2018,8 +2018,6 @@ with more advanced ray tracing based algorithms.
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
(insert vkrt_tuto_further.md.html here)
|
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
<!-- Markdeep: -->
|
<!-- Markdeep: -->
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Ray Tracing Animation - Tutorial
|
# Ray Tracing Animation - Tutorial
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Tutorial ([Setup](../docs/setup.md))
|
## Tutorial ([Setup](../docs/setup.md))
|
||||||
|
|
||||||
|
|
@ -156,7 +156,7 @@ The last point is to call the update at the end of the function.
|
||||||
m_rtBuilder.updateTlasMatrices(m_tlas);
|
m_rtBuilder.updateTlasMatrices(m_tlas);
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### nvvk::RaytracingBuilder::updateTlasMatrices (Implementation)
|
### nvvk::RaytracingBuilder::updateTlasMatrices (Implementation)
|
||||||
|
|
||||||
|
|
@ -592,4 +592,4 @@ Finally, we can add a line at the end of `HelloVulkan::animationObject()` to upd
|
||||||
m_rtBuilder.updateBlas(2);
|
m_rtBuilder.updateBlas(2);
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -248,11 +248,11 @@ any hit or intersection shaders in the Hit Group. But in this example, the close
|
||||||
|
|
||||||
This is how the current SBT looks like.
|
This is how the current SBT looks like.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
And we need to add the following to the ray tracing pipeline, a copy of the previous Hit Group, with a new AnyHit using the proper payload.
|
And we need to add the following to the ray tracing pipeline, a copy of the previous Hit Group, with a new AnyHit using the proper payload.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
### New shaders
|
### New shaders
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Callable Shaders - Tutorial
|
# Callable Shaders - Tutorial
|
||||||
|
|
||||||

|

|
||||||
<small>Author: [Martin-Karl Lefrançois](https://devblogs.nvidia.com/author/mlefrancois/)</small>
|
<small>Author: [Martin-Karl Lefrançois](https://devblogs.nvidia.com/author/mlefrancois/)</small>
|
||||||
|
|
||||||
## Tutorial ([Setup](../docs/setup.md))
|
## Tutorial ([Setup](../docs/setup.md))
|
||||||
|
|
|
||||||
|
|
@ -178,10 +178,10 @@ The VMA allocator need to be released in `HelloVulkan::destroyResources()` after
|
||||||
|
|
||||||
Instead of thousands of allocations, our example will have only 14 allocations. Note that some of these allocations are allocated by Dear ImGui, and not by DMA. These are the 14 objects with blue borders below:
|
Instead of thousands of allocations, our example will have only 14 allocations. Note that some of these allocations are allocated by Dear ImGui, and not by DMA. These are the 14 objects with blue borders below:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Finally, here is the Vulkan Device Memory view from Nsight Graphics:
|
Finally, here is the Vulkan Device Memory view from Nsight Graphics:
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Jitter Camera - Tutorial
|
# Jitter Camera - Tutorial
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Tutorial ([Setup](../docs/setup.md))
|
## Tutorial ([Setup](../docs/setup.md))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Multiple Closest Hit Shaders - Tutorial
|
# Multiple Closest Hit Shaders - Tutorial
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Tutorial ([Setup](../docs/setup.md))
|
## Tutorial ([Setup](../docs/setup.md))
|
||||||
|
|
||||||
|
|
@ -77,7 +77,7 @@ Then add a new hit group group immediately after adding the first hit group:
|
||||||
As a test, you can try changing the `sbtRecordOffset` parameter of the `traceRayEXT` call in `raytrace.rgen`.
|
As a test, you can try changing the `sbtRecordOffset` parameter of the `traceRayEXT` call in `raytrace.rgen`.
|
||||||
If you set the offset to `1`, then all ray hits will use the new CHIT, and the raytraced output should look like the image below:
|
If you set the offset to `1`, then all ray hits will use the new CHIT, and the raytraced output should look like the image below:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
!!! Warning
|
!!! Warning
|
||||||
After testing this out, make sure to revert this change in `raytrace.rgen` before continuing.
|
After testing this out, make sure to revert this change in `raytrace.rgen` before continuing.
|
||||||
|
|
@ -123,7 +123,7 @@ Back in `main.cpp`, after loading the scene's models, we can now have both `wuso
|
||||||
helloVk.m_objInstance[1].hitgroup = 1;
|
helloVk.m_objInstance[1].hitgroup = 1;
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Shader Record Data `shaderRecordKHR`
|
## Shader Record Data `shaderRecordKHR`
|
||||||
|
|
||||||
|
|
@ -277,7 +277,7 @@ ROUND_UP(m_rtProperties.shaderGroupHandleSize + sizeof(HitRecordBuffer), progOff
|
||||||
!!! Note:
|
!!! Note:
|
||||||
The result should now show both `wuson` models with a yellow color.
|
The result should now show both `wuson` models with a yellow color.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Extending Hit
|
## Extending Hit
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Reflections - Tutorial
|
# Reflections - Tutorial
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Tutorial ([Setup](../docs/setup.md))
|
## Tutorial ([Setup](../docs/setup.md))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue