How can I set the resolutions camera to half?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By HarryCourt

So, I have a Camera3D that I want to look half resolution. I am aware there is a Half Resolution option when your in the 3D Render, so I was wondering if there was a way to apply that to the camera? Thanks in Advance

:bust_in_silhouette: Reply From: HarryCourt

I know this is an extremely old quesiton, but for anyone looking, I do have an idea (Which I haven’t tried out yet)

Whatever the resolution of your game is, halve it, and then through GDScript, force the window to be twice the size of the current screen, but keep the resolution the same. You should have a pixelated screen.

Keep in mind that setting OS.window_size will automatically resize the root viewport, unless you use the viewport stretch mode.

I would go for using a custom Viewport instead, which is a cleaner solution that won’t involve a visible window size change when the game starts (after the splash screen is finished). As far as I know, this would also make it possible to use linear upscaling instead of nearest-neighbor upscaling.

Calinou | 2018-11-26 16:12