Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubViewport displays none of its children objects in the 3D window of the editor if it has own_world_3d or world_3d set #66345

Open
Maveyyl opened this issue Sep 24, 2022 · 4 comments

Comments

@Maveyyl
Copy link

Maveyyl commented Sep 24, 2022

Godot version

4.0-beta1_mono_win64

System information

Windows 10

Issue description

SubViewport displays none of its children objects in the 3D window of the editor if it has own_world_3d or world_3d set.

We can see what's rendered in the SubViewportContainer though.

Setting its own world to a SubViewport is important because otherwise its content gets displayed on any other scenes on the 3D window, and displays other scenes that are opened in its render whenever I use it as an editor plugin dock slot. Not sure if it's normal too.

Steps to reproduce

Create a control scene

Add a subviewport as child

Create anything as child of subviewport

Go in on the 3D window and assure what you just created is visible

tick own_world_3d or set world_3d of subviewport

whatever was visible before is now not rendered on the 3D window

Minimal reproduction project

BugSubViewport.zip

@Calinou
Copy link
Member

Calinou commented Sep 24, 2022

@Maveyyl Please upload a minimal reproduction project to make this easier to troubleshoot.

@Maveyyl
Copy link
Author

Maveyyl commented Sep 24, 2022

Done

@JohnPandich
Copy link

JohnPandich commented Jan 25, 2023

This still exists in Beta 15, and IMHO is probably somewhat related to #55471 which was fixed by #70132. This issue was not fixed by that change but it might be a good place to start.

@hawkerm
Copy link

hawkerm commented Sep 21, 2024

Think I've seen this in v4.3.stable.mono.official [77dcf97] as well. I was very confused, as the subviewport still worked correctly with the game running, and I could see it in the container. But nothing but the gizmos were appearing in the editor when I selected the 3D nodes of the world. Meant I couldn't use the editor to setup my scene and have it isolated from my other world. So, I had to go back to having a shared world and just moving them back down and then up in the sky for now to edit what I wanted to look at easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants