More realistic parallax in 2D when zooming in/out

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thomas_laverne
:warning: Old Version Published before Godot 3 was released.

Hi guys,

I’m would have like to know if there is a way to avoid weird translations with parallax bg and layers when zooming in/out? I tried the ignore camera zoom but I don’t think it is really ‘realistic’. Any hint?

My guess would be probably to switch my 2d game to 3d, however I have no idea how hard this could be. I saw, few months ago, a snapshot of Juan showing a 2d game made in 3D (it was a mario bros clone).

Thank you !

Currently the parallax layer node suffers from strange issues with camera zoom and rotation…

Bojidar Marinov | 2016-04-07 08:23

Thank you! However the only bug I found “close” to that issue is
Camera2D zoom & smoothing problem · Issue #2074 · godotengine/godot · GitHub
Which is somewhat unrelated.

Is there already a ticket for that issue?

thomas_laverne | 2016-04-07 10:08

Well, it would be nice to open a new one, including a small test project, etc.

Bojidar Marinov | 2016-04-07 12:09

:bust_in_silhouette: Reply From: timoschwarzer

At the moment, there isn’t such an option.
I solved the issue by moving the Layers myself with this script:

And here was my problem: Camera Zoom like a resolution change - Godot Engine - Q&A