Godot: PanoramaSky automatically applies filter to texture after reloading the scene or changing radiance size

Created on 14 Aug 2019  路  14Comments  路  Source: godotengine/godot

Godot version:

Godot 3.1 -stable

OS/device including version:

Linux Mint 19.something

Issue description:

I import a texture without the filter flag enabled and its all fine. Once applied to the Worldenviroments panoramaSky the texture gets filtered anyway. At first glance it looks like it is working because in the editor it gets filtered. But once I close the scene in the editor and reopen OR just start the game the texture is filtered.

So apparently the WorldEnviroment or the PanoramaSky automatically enables the filter flag anyways.

Steps to reproduce:

  1. Import a texture with filter flag off.
  2. Create a scene with a worldEnviroment and give it a PanoramaSky resource.
  3. Give the PanoramaSky the imported texture.
  4. Close and reopen the scene OR play the game.
  5. A filtered skybox, not pixelated as I wanted it to be :(

Minimal reproduction project:

bug confirmed rendering

Most helpful comment

@EzraT Thanks for the extra info. It turned out to be an easy fix. I have submitted a PR :)

All 14 comments

Can confirm, this issue is still present in 3.2.1.

image

This effectively makes PanoramaSky useless for 3D Pixel art games.

@Ezrat GLES2 or GLES3?

@clayjohn Both, the screenshot was taken with GLES2 enabled.

@Calinou Were you able to reproduce? I just tested it out and both GLES2 and GLES3 are working fine.

Zoom in to see the difference.
Screenshot (160)

Screenshot (161)

@clayjohn Either re-open or run your scene to reproduce the issue.
Changing radiance size also works.

@EzraT Oh! That's very helpful then. I bet the filter just isnt getting reset after creating radiance maps.

@EzraT Thanks for the extra info. It turned out to be an easy fix. I have submitted a PR :)

@clayjohn Many thanks for the fix! Happy to help. :]

Fixed by #37815.

@clayjohn @Calinou
Could this issue be re-opened?
I think this problem has re-surfaced in one of the later versions, I'm getting this same incorrect behavior again in 3.2.3.

Same thing as before, changing the sky's radiance size reverts the texture from unfiltered to filtered, as does running the game or re-opening the scene in the editor.

I can reproduce. Fortunately, this issue only affects GLES3 right now which should make the issue easier to track down.

@EzraT PR made :)

Thanks! @clayjohn

Further fixed by #43264.

Was this page helpful?
0 / 5 - 0 ratings