Obi Official Forum

Full Version: Deleting Obi Cloth actors breaks normal calculations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
[attachment=1081]

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.
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
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,
Hey josemendez

Thanks for the quick response!

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

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