From 7f2a649a22a8c8f70e52ecdfd1cec45191e41bfb Mon Sep 17 00:00:00 2001 From: Lewis Jordan Date: Fri, 23 Oct 2020 15:39:38 +0100 Subject: [PATCH] Added ray tracing and animation page --- .../Documentation~/Ray-Tracing-Animations.md | 24 +++++++++++++++++++ .../Documentation~/TableOfContents.md | 1 + 2 files changed, 25 insertions(+) create mode 100644 com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Animations.md diff --git a/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Animations.md b/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Animations.md new file mode 100644 index 00000000000..436e4430274 --- /dev/null +++ b/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Animations.md @@ -0,0 +1,24 @@ +# Ray tracing and animation + +If your Project uses ray-traced effects, you may need to perform further steps to display particular animations correctly. + +## Alembic + +If you use an [alembic](https://docs.unity3d.com/Packages/com.unity.formats.alembic@latest) animated mesh, the animation may not appear to play in ray-traced effects. To fix this: + +1. Select the GameObject with the alembic animated mesh. +2. In the Inspector, find the **Mesh Renderer** component. +3. In the **Ray Tracing** section, set **Ray Tracing Mode** to **Dynamic Geometry**. + +This allows the alembic mesh to animate in ray-traced effects. + +## Skinned Mesh Renderer + +If you use a [Skinned Mesh Renderer]() and the mesh is culled by the camera, the animation may not appear to play in ray-traced effects. To fix this: + +1. Find and select the [Volume](Volumes.md) that contains your [Ray Tracing Settings](Ray-Tracing-Settings.md). +2. In the Inspector, find the **Volume** component. +3. Override and enable the **Extend Camera Culling** property. + +This allows the Skinned Mesh Renderer to animate in ray-traced effects. + diff --git a/com.unity.render-pipelines.high-definition/Documentation~/TableOfContents.md b/com.unity.render-pipelines.high-definition/Documentation~/TableOfContents.md index a1dd0dd5232..0108f4643db 100644 --- a/com.unity.render-pipelines.high-definition/Documentation~/TableOfContents.md +++ b/com.unity.render-pipelines.high-definition/Documentation~/TableOfContents.md @@ -155,6 +155,7 @@ * [Recursive Rendering](Ray-Tracing-Recursive-Rendering) * Shader Graph Keywords * [Raytracing Quality](SGNode-Raytracing-Quality) + * [Ray Tracing and Animations](Ray-Tracing-Animations.md) * Debugging * [Debugging Ray-Traced Effects](Ray-Tracing-Debug) * Components