Comments (10)
I noticed these when working on ktx2ktx2. It caused me to add a feature to drop such invalid metadata or optionally rewrite it during the conversion. I don't have a good way to fix these .ktx files as I don't have the original images. (I would really like to get those for the Yokohama cubemap). I will have to resort to a binary editor I suppose.
Are you up for creating a PR with the fixes?
from ktx-software.
No problem. I found the incorrect keys while working on a simple KTX inspection tool, which also can be used to fix the files. The real challenge was to review the changes in Git.
On this subject, I'm working on a repository with custom KTX test files, including files with errors. Hopefully, that will be a useful contribution to the pool of test data for KTX tools.
from ktx-software.
IIRC, I created metalplate*
and not4*
using PVRTexTool. Maybe it is the guilty party in the other images too, which I found on the net. I just checked and found "KTXOrientation" in the binary. It is indeed the culprit.
from ktx-software.
I reported this to Imagination:
https://forums.imgtec.com/t/pvrtextool-setting-incorrect-ktx-metadata/3024
from ktx-software.
@MarkCallow The original yokohama images are these I believe:
http://www.humus.name/Textures/Yokohama3.zip
They're JPG, but they appear to be higher quality than the KTX existing compressed versions (i.e. no terrible banding in the sky)
from ktx-software.
Here's the ktx version: https://s3.amazonaws.com/Oculus/cubemap_yokohama_rgba32.zip
from ktx-software.
oops... looks like I accidentally found the culprit for the original bug.... my cubemap was created using PVRTexTool, and it appears to have put the incorrect KTXOrientation
name in. I've posted in their forum about the issue here: https://forums.imgtec.com/t/incorrect-invalid-ktx-key-value-data/3047
from ktx-software.
Thanks for the pointer to the Yokohama cubemaps. If I have time next week I'll try to create a Basis compressed .ktx2. I'd like to make new .ktx files of the ETC2, ASTC & BC3 versions as well.
As I noted in an earlier comment, I posted in the imgtec forum as well. There has been no response.
from ktx-software.
Whoops... should have read the whole thread I guess.
from ktx-software.
No worry. The extra post in the forum will show multiple people are interested in a fix.
from ktx-software.
Related Issues (20)
- Allow A8B8G8R8 PACK32 formats
- Loading KTX1 and KTX2 file on Linux/OpenGL 4.3 leads to weird error if not luch the program with sudo HOT 4
- Project install installs fmt lib HOT 1
- Preceding `ktx` command name with option leads to error HOT 1
- WebGL test gets shader compile error
- Converting transfer functions (using assign-oetf and convert-oetf) HOT 15
- samplePositions possibly incorrect for single-plane 4:2:2 YUV formats HOT 4
- The JNI binding for input swizzling is broken
- No option to apply `zstd`/`zlib` compression via JNI HOT 21
- Improvements for the Java/JNI bindings HOT 4
- Synchronizing auto-generated files with bindings HOT 2
- How to call `CreateFromMemory`? HOT 2
- Memoy leak when ktxTexture2_DeflateZstd fails
- Running in docker container (GLIBC not found error) HOT 2
- CI build scripts prevent local use with test updates by initializing CTS submodule
- Skipping mipmaps when loading from disk HOT 2
- The execution speed of the ktxTexture2_CompressBasisEx method is quite slow HOT 15
- No definition for ktxTexture2_Destroy in ktx.h HOT 3
- Enabling Automatic Mipmap Generation Causes Validation Error HOT 1
- ktxTexture_SetImageFromMemory should document pointer lifetime guarantees HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktx-software.