Search Issue Tracker
Feature Request
Votes
4
Found in
2023.1.0b20
2023.2.0a18
Issue ID
UUM-37788
Regression
Yes
Motion Vectors are incorrect when using Graphics.DrawMesh
How to reproduce:
1. Open the attached “Vector.zip” project
2. Open “OutdoorsScene”
3. Enter Play Mode or Build And Run
Expected result: Right cube is not rendered blurred
Actual result: Right cube is rendered blurred
Reproducible with: 2023.1.0a18, 2023.1.0b20, 2023.2.0a18
Not reproducible with: 2021.3.26f1, 2022.3.0f1, 2023.1.0a17
Reproduced on: Windows 10, Windows 11 (user’s machine)
Notes:
* Left cube is rendered with MeshRenderer. Right cube is rendered with Graphics.DrawMesh
* Setting Rendering Debugger’s Fullscreen Debug Mode to MotionVectors (Window > Analysis > Rendering Debugger) will reveal vectors of the cube on the right, indicating the blurry effect
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Resolution Note:
The missing problem of motion vector for DrawMesh is not a bug or a regressoin but just have never been implemented in Builtin... This isn't related to SRP. So it is a feature request to add the support.
However there is an existing alternative, the RenderMesh API have been develop to currently fix all the issues with DrawMesh (which can be modify too much due to backward compatibility). See https://docs.unity3d.com/ScriptReference/Graphics.RenderMesh.html . RenderMesh support the motion vector