Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deleting Obi Cloth actors breaks normal calculations
#1
Hi there!

I really like Obi plugins. Great work!

Lately, I've encountered a weird bug: When I try to delete Obi Cloth softbodies from a scene remaining ones are not rendered correctly if Burst is enabled.

See the "red" ball on the right:

.png   ObiCloth_normals_bug.png (Size: 46.65 KB / Downloads: 8)

I think Burst messes up normal calculations since it only affects objects with Obi Cloth Renderer's Tangent Space Update set to Copy Normals From Simulation or Transform Normals And Tangents.  

You can reproduce the issue by loading ClothSoftbody sample scene and deleting first 2 "Softbodies" from the Hierarchy in Play Mode.

Note: I'm using Unity 2020.3.12f1.
Reply
#2
Hi there,

Could reproduce this issue, seems to only happen when using the Burst backend. Will fix the bug and provide a patch asap.

Thanks for reporting this! Sonrisa
Reply
#3
Hi again,

I've fixed this. Replace:

Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs
Obi/Scripts/Common/Backends/Burst/BurstMath.cs

With the ones attached to this message, that should solve the problem. This assumes you're using the latest version on the store (6.2), let me know otherwise and I'll back port the fix to the version you're using.

Let me know if I can be of further help.

kind regards,


Attached Files
.cs   BurstMath.cs (Size: 27.23 KB / Downloads: 3)
.cs   BurstSolverImpl.cs (Size: 40.72 KB / Downloads: 2)
Reply
#4
Hey josemendez

Thanks for the quick response!

I confirm that the issue has been fixed with the patch.

Cheers!
Reply
#5
You're welcome! Sonrisa This fix will be included in the next update.
Reply