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

Godot generates PVRTC-compressed texture with all zeros #38040

Open
DrMoriarty opened this issue Apr 20, 2020 · 8 comments
Open

Godot generates PVRTC-compressed texture with all zeros #38040

DrMoriarty opened this issue Apr 20, 2020 · 8 comments

Comments

@DrMoriarty
Copy link
Contributor

Godot version:
Godot 3.2.2.beta1

OS/device including version:
MacOSX 10.14.6 (18G95)

Issue description:
Set texture VRAM compressed, enable pvrtc compression. Reimport texture, after GDST header it contains only zeros.

Original file:
background

Compressed file:

background.png-14973fd1de8b151436931643db6aa461.pvrtc.stex.zip

Steps to reproduce:

Minimal reproduction project:

@DrMoriarty
Copy link
Contributor Author

It was broken after 3.1.1
For example this file generated by godot-3.1.1.stable:
background.png-14973fd1de8b151436931643db6aa461.pvrtc.stex.zip

@DrMoriarty
Copy link
Contributor Author

I'm trying to fix it and it seems that our pvrtc encoder completely broken.
So my game looks on an emulator:
Снимок экрана 2020-04-20 в 23 21 06

And this is screenshot from iphone:
Screen Shot 2020-04-20 at 23 19 12

One texture (container in the center of screen) is vram packed.

@Zireael07
Copy link
Contributor

IIRC VRAM packing isn't supported on mobiles?

@DrMoriarty
Copy link
Contributor Author

@Zireael07 what is it IIRC?

@Zireael07
Copy link
Contributor

IIRC = If I recall correctly

@DrMoriarty
Copy link
Contributor Author

@Zireael07 therefore there is a reason to make it workable.

@Calinou Calinou changed the title Generates pvrtc texture with all zeros Godot generates PVRTC-compressed texture with all zeros Apr 21, 2020
@Calinou
Copy link
Member

Calinou commented Apr 21, 2020

Related to #28669, #28683?

@DrMoriarty
Copy link
Contributor Author

@Calinou yes, exactly. Now I'm working on new pvrtc compressor for godot. Hope it will be ready in couple of days.

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

No branches or pull requests

4 participants