Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Headless] Workaround texture load failure. #56048

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Dec 18, 2021

Some assets are loaded based on OS/server feature detection, namely textures (but potentially others).
The ResourceImporter will fail to load a texture if the OS reports not supporting it.
The OS, in turn, checks texture format support via the RenderingServer.
This commit makes the dummy rasterizer report known texture formats as supported (although unused), so that scenes can be correctly loaded when they include references to imported textures.

Fixes #55628 although this feels more like a workaround.
I'm not sure what a proper fix would look like, will probably have a better picture once we take a crack at: godotengine/godot-proposals#2756 (so we can re-export the assets in a dedicated format).
CC @akien-mga since I know you worked on the GL/OS texture format madness :)

@akien-mga
Copy link
Member

Do we still support pvrtc too? Might be good to double check all platforms' features to make sure we don't miss one.

I think the workaround is correct for the time being.

@Calinou
Copy link
Member

Calinou commented Dec 18, 2021

Do we still support pvrtc too? Might be good to double check all platforms' features to make sure we don't miss one.

The PVRTC support code is still present, but I'm not sure if it still works in master. See godotengine/godot-proposals#3688.

Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing bptc? I know it is currently slow but my cvtt pr makes it fast

Some assets are loaded based on OS/server feature detection, namely
textures (but potentially others).
The ResourceImporter will fail to load a texture if the OS reports not
supporting it. The OS, in turn, checks texture format support via the
RenderingServer.
This commit makes the dummy rasterizer report known texture formats as
supported (although unused), so that scenes can be correctly loaded when
they include references to imported textures.
@Faless
Copy link
Collaborator Author

Faless commented Dec 20, 2021

Added rgtc and bptc

@akien-mga akien-mga merged commit 7161663 into godotengine:master Dec 20, 2021
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Headless mode falsely complains about unimported resources
4 participants