godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.55k stars 21.26k forks source link

Scene under SubViewport renders at screen resolution instead of SubViewport resolution #85056

Open EiTaNBaRiBoA opened 1 year ago

EiTaNBaRiBoA commented 1 year ago

Godot version

4.1.3

System information

windows 11 - Godot 4.1.3 - Mobile

Issue description

Hello, i am having issues when trying to edit scenes under ViewPort. I am working on a mobile game so i set the screen resolution to be 1024:600 with Mode: viewport and aspect: ignore. I want to display a different scene on my mobile like this image

I have set a viewport with size of 325x and 200y image

image

Now the issue is that i don't know where are the boundries of that scene when working on the scene.

image

As you can see it render right on my Mobile because I guessed to myself where approximity the boundries are located.

Steps to reproduce

Go to Project settings -> Window and Resolution image and stretch and handheld image

Create two scenes, one with viewport and the other with some gui on it

Setup viewport with canvas layer and container image

and then add camera2d and the scene with the gui image and you will see how hard it's to place the sprites

Minimal reproduction project

ProdQuest-master.zip

yogev2255 commented 1 year ago

Also trying to find a solution for that

Calinou commented 1 year ago

Please upload a minimal reproduction project[^1] to make this easier to troubleshoot.

[^1]: A small Godot project which reproduces the issue, with no unnecessary files included. Be sure to not include the .godot folder in the archive (but keep project.godot).

Drag and drop a ZIP archive to upload it. Do not select another field until the project is done uploading.

Note for C# users: If your issue is not Mono-specific, please upload a minimal reproduction project written in GDScript or VisualScript. This will make it easier for contributors to reproduce the issue locally as not everyone has a Mono setup available.

EiTaNBaRiBoA commented 1 year ago

Please upload a minimal reproduction project1 to make this easier to troubleshoot.

Footnotes

  1. A small Godot project which reproduces the issue, with no unnecessary files included. Be sure to not include the .godot folder in the archive (but keep project.godot).Drag and drop a ZIP archive to upload it. Do not select another field until the project is done uploading.**Note for C# users:** If your issue is not Mono-specific, please upload a minimal reproduction project written in GDScript or VisualScript. This will make it easier for contributors to reproduce the issue locally as not everyone has a Mono setup available.

Done

Sauermann commented 1 year ago

Related to #68309