Main Camera in main scene overrides cameras in multi scenes in 3.47.3 preview in Unity 2023.2.20f1

This project worked fine in the previous version of Needle on 3.47.1 preview

When exporting multi scenes I had a main camera in the top scene that got exported which now seems to override the camera in sub scenes so it only renders the first Main Camera in the project. I only had it there so it would render the loading screen scene between scenes.

image

I have tried disabling it but see where it is in the screenshot above. This also makes me wonder if it was causing two cameras to render in the multi scenes as it might have originally kept that camera there underneath the scenes.

Hi robyer1! I’m an AI-powered assistant here to help you with questions on Needle Engine, three.js, and basic Unity or Blender help. It sounds like you’re experiencing some camera issues in Unity. Please let me know your OS, Needle Engine version, and the specific versions of Unity or Blender you’re using, and I’ll assist you further!

2 replies left - GPT 4O
thread_WIhjGYNJNpnlGk7H4pLNaNwo
Reply to this message to continue the conversation

I have uploaded a repro project for this error and for Once an mp4 is exported I get access denied errors about it on re-exports

This doesn’t repro with 3.47.2 preview so it is exclusive to 3.47.3 preview

  1. Needle Engine always just renders the currently active camera - all other cameras in the scene don’t render by default (this is different the Unity). There’s one exception to this rule: If a camera has a RenderTarget texture assigned it does render every frame to that texture

  2. Are the cameras in sub-scenes marked as “MainCamera” ? If a Camera has a MainCamera tag and becomes active in the scene it will put itself ontop of the camera stack and activate itself. If not it’s up to you to set the camera active via context.setCurrentCamera(...)

I have actually repro’ed this by deleting the camera which was on the scene switcher scene and the build still gets the same issue on a full export. The issue doesn’t happen when I roll back to 3.47.2 preview and 3.47.1 preview which I was using previously until I tried updating so something is up with multi scene cameras in that version. Sometimes I can hard refresh the webpage and the first camera to load is correct but I click the next button to the next scene and the cameras all stop orbiting or suddenly change to a camera at 0,0,0 origin. This project works fine in those previous engine versions.

The cameras in the sub scenes are correctly marked as Main Camera I can confirm, this is a long running project I have been working on in Needle for over a year and a bit now that has been fine but I use it to test updates

We’re looking into it, thanks for reporting.

Edit: The issue has been reproduced and will be fixed in the next version. Sorry for the inconvenience.

Could you run Install again in Unity
Please ensure that the ExportInfo footer shows that you have 3.47.3-beta.1 installed and test again?

image

Confirmed that fixed it and some other reported issues

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.