Unity-Technologies / com.unity.perception

Perception toolkit for sim2real training and validation in Unity
Other
910 stars 177 forks source link

How can I use multiple perception camera? #590

Open yjs9012 opened 1 year ago

yjs9012 commented 1 year ago

I'm trying to use two cameras with perception camera(script). For this, One was set to display1 and the other to display2. when I press the play button, one works fine, but the other is not labeled.

From the FAQ, multiple perception camera is available for 1.0 version package, then is there any ways or steps i can follow to implement multiple cameras? Thanks

eugeneteoh commented 1 year ago

I kinda fixed it in my fork but I disabled the visualisation. If anyone wants to fix the visualisation, feel free to submit a PR to my fork. https://github.com/Unity-Technologies/com.unity.perception/issues/549#issuecomment-1518265591

This is the function that is causing the problem: https://github.com/eugeneteoh/com.unity.perception/commit/1e8a86967190d42f35ab41c9930545dca8ada1f0#diff-b18135f210d8df1c97e6d43146ad85ebc4dc4b73ea1fa8d85f6e24f3c914c1adR94