BakeLightmaps error

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

I’m trying to bake lightmaps with Godot 3.4 Mono (C# Version) but Godot freezes and terminal shows this error indefinitely:

ERROR: Can't set_pixel() on compressed image, sorry.
at: (core/image.cpp:2774)
ERROR: Can't set_pixel() on compressed image, sorry.
at: (core/image.cpp:2774)
ERROR: Can't set_pixel() on compressed image, sorry.
at: (core/image.cpp:2774)
.... 

Tried changing compression format in image import settings but no luck

:bust_in_silhouette: Reply From: dgino

In my case I had Envioronment to Scene (I have a custom Panorama Sky) for my BakedLightmap Node, that did cause the issue

It would be nice to see a stacktrace in logs to track who is causing the issue though

Please open an issue with a minimal reproduction project included (preferably one that doesn’t use C# scripts).

Calinou | 2021-11-22 15:49