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
Some PNG files display red areas in part of the image #320
Comments
That's a bug in image compression, you can disable it using engine
.resource_manager
.state()
.containers_mut()
.textures
.set_default_import_options(
TextureImportOptions::default().with_compression(CompressionOptions::NoCompression),
); Add these lines right after you obtained a ref to engine (if you're using Framework, then in the beginning of |
Hello! I still experience the issue. I've put the command at the very top of impl GameState for GameGlobal {
fn init(engine: &mut Engine) -> Self {
// As of Fyrox v0.26, there's a bug in the images compression.
// See https://github.com/FyroxEngine/Fyrox/issues/320.
//
engine
.resource_manager
.state()
.containers_mut()
.textures
.set_default_import_options(
TextureImportOptions::default().with_compression(CompressionOptions::NoCompression),
); this runs before any texture is loaded. I also notice that those images flicker, I don't know if it's related. |
If I convert the image(s) to GIF, I don't experience the problem (even without workaround). |
Ok, maybe I shouldn't check bugs like this early in the morning 😄 . It could be relate to image loader, it is based on |
Some of your images are in |
Is this considered an issue with the engine (I don't have the technical knowledge)? With all the tools i've tried (Firefox, GNOME default image viewer, GIMP, Feh), the example above displays the transparency correctly. |
Oh wow. Thanks! 🙏 |
If I open some images, either via Fyrox (in a game) or in Fyroxed, red areas are displayed as part of the image. Such corruption only displays in Fyrox; other programs/libraries (Eye of MATE, GIMP, Github web interface, the PyGame library) don't have this problem.
This is an example:
This is how the image looks when opened on Gimp:
This is a link to the image file.
The text was updated successfully, but these errors were encountered: