Azure / azure-remote-rendering

SDK and samples for Azure Remote Rendering
MIT License
106 stars 38 forks source link

[Remote rendering problem] Unity issue with reparenting Entities multipe times #112

Closed ujell closed 10 months ago

ujell commented 1 year ago

I am having a weird issue on Unity version while working with a dynamic hiearchy. I first thought it was maybe related with sceneGraphMode parameter while converting the models, but this is reproducable in Showcase app with the default engine model, so I am thinking it might be an ARR bug.

Explanation: if you move a child Remote Entity Sync Object out of the object hierarchy, move it back to the original parent, and then move an ancestor (except parent) out of the hieararchy, children are not rendered at the original position anymore, despite everything having the same transform values as before. Yes, it is clearly an edge case, however this is actually regularly happening in our app.

How to reproduce:

In our models, parents usually have multiple children and seems like all children are affected from this, it behaves like we have moved the parent transform. This issue is not happening if you move the parent directly to somewhere else, or if you move the direct parent instead of the other ancestors. Transform values seems not the be reason, they are the same in all cases as far as I can see. Also this seems to be still happenning if you manually sync after every move instead of using "Sync Every Frame".

Tested in both in Showcase app as its current state in the repository, as well as with Unity 2021.3.27f1 and ARR 1.2.8 release.

This is a weird case, so I hope it the explanation is clear enough. Any ideas what this might be? Maybe I am missing a limitation or some documentation? Thanks in advance!

ChristopherManthei commented 1 year ago

Hi @ujell , Sorry for the late reply. Thank you for the detailed repro steps. We haven't finished investigating yet, but we will definitely get back to you next week. Cheers, Christopher

jumeder commented 1 year ago

Hi @ujell, we can reproduce the issue and it looks like a bug on our side. We logged an internal bug ticket with the team and we'll let you know once a fix is available.

jumeder commented 10 months ago

Hi @ujell, we deployed a fix for this issue in the meantime. While we generally recommend using the latest client version, it also should work with the one you're already using. Let us know if you still run into problems!

ujell commented 10 months ago

Seems like working like a charm now, thank you!