What is Godot doing with this PNG file?

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

Hello Godot Experts,

We’re building a 2D game that uses PNGs for backgrounds. The frame of the game is normally 2200x1600, but I wanted to have one scene that pans across a wider background (8000 x 1600). When I tried to load the larger PNG into my existing project, it rendered like this:
Godot PNG weirdness
detail
should look like this

Does this have something to do with my Project Settings? The original PNG seems fine so it appears to be something Godot is doing with it.

Side question: if this turns out to be an unsuccessful way to make a wider background, what’s the best practice for making a wider background scroll in only one scene?

I guess your image size(dimension) is too big.
would you try it with 2048 or less?

you can add several sprites for background, splitted by multiple files.

volzhs | 2018-01-18 03:05

:bust_in_silhouette: Reply From: eons

If Godot 2, the renderer limits to 4096 textures (GLES2 limit and most hardware that supports it too).
You can import it as LargeTexture (be sure to select the ltex extension).

Thanks! I will break up the file.

leaderlessdavid | 2018-01-18 21:49

the large texture can do that for you.

eons | 2018-01-19 02:02