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

ImGui doesn't support scale mode 'viewport' when executing games that use resized graphics. #96

Open
AleF2050 opened this issue Nov 27, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@AleF2050
Copy link

When running Godot applications that use resized viewport for graphics, i expected the ImGui interface to display as normal, but didn't expect the interface to actually look pixelated instead.

image

When i look at the console, there's a error: imgui-godot: scale mode viewport is unsupported

How do i use ImGui on resized viewports?

@pkdawson
Copy link
Owner

It's not possible to support viewport scaling, but you can achieve a very similar effect by using stretch mode disabled, and putting your entire game in a SubViewport instead. Attached a project which shows the basics of how you might set that up.

GdsViewport.zip

@pkdawson pkdawson added the documentation Improvements or additions to documentation label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants