Obi Official Forum
Deleting Obi Cloth actors breaks normal calculations - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Deleting Obi Cloth actors breaks normal calculations (/thread-3010.html)



Deleting Obi Cloth actors breaks normal calculations - okays - 06-07-2021

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.


RE: Deleting Obi Cloth actors breaks normal calculations - josemendez - 06-07-2021

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


RE: Deleting Obi Cloth actors breaks normal calculations - josemendez - 07-07-2021

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,


RE: Deleting Obi Cloth actors breaks normal calculations - okays - 07-07-2021

Hey josemendez

Thanks for the quick response!

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

Cheers!


RE: Deleting Obi Cloth actors breaks normal calculations - josemendez - 07-07-2021

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