Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to cure blur
#2
(15-08-2024, 06:00 AM)bobooo Wrote: When I play the sample scene in HDRP, the object becomes blurry,
How can I resolve the blur?

Obi version is 7.0.1

Unity version is 2022.3.22f1.

Hi!

Thanks for reporting this! It's an oversight on our part.

Open up ComputeSoftbodyRenderSystem.cs (or BurstSoftbodyRenderSystem.cs, depending on which backend you're using) and modify line 101 (or 89 in BurstSoftbodyRenderSystem) to look like this:

Code:
Graphics.RenderMesh(rp, batch.mesh, m, m_Solver.transform.localToWorldMatrix, m_Solver.transform.localToWorldMatrix);

instead of this:

Code:
Graphics.RenderMesh(rp, batch.mesh, m, m_Solver.transform.localToWorldMatrix);

Unity's Graphics.RenderMesh takes both the object's current transform and its previous transform as parameters for object-based blur. If you don't pass the previous transform it assumes the parameter value is null. As a result, motion blur thinks the object is moving when it isn't. In my humble opinion, Unity should change this method so that it assumes the previous transform is the same as the current one by default.

kind regards
Reply


Messages In This Thread
How to cure blur - by bobooo - 15-08-2024, 06:00 AM
RE: How to cure blur - by josemendez - 15-08-2024, 07:52 AM
RE: How to cure blur - by josemendez - 15-08-2024, 08:18 AM