Comments (2)
I think I tracked down the source of the "error". I use gli for importing and exporting ktx and dds files. The exporter does not check if its actually a single cubemap when writing the imageSize (and writes the number of bytes for all faces). Additionally, it doesn't even look at the value of imageSize during import (thats probably the reason why every cubemap import works, even if the meaning of imageSize may differ).
However, then I noticed that I always write either Texture2DArray, TextureCubeArray or Texture3D because a Texture2D is basically a Texture2DArray with a single slice and I was lazy. This means that the exporter actually writes "numberOfFaces = 6, numberOfArrayElements = 1" in which case the imageSize is correct.
Is writing a cube map array instead of a cubemap a problem for you? If yes, I can rework it, but it will take some time...
from imageviewer.
I didn't notice that you write cubemap array with a single array element, then error is in my importer.
Thank you!
P.S. I looked at sources of gli, then don't check for a Cubemap imagesize, maybe they should rewrite exported? Or maybe I am the one who missunderstand the specification?
from imageviewer.
Related Issues (20)
- Exporting with a view multiplyer (example 1/2) is falsely applied to the alpha chanel
- Add Ctrl+O for opening files
- Invalid Formula (I0-I1)^2 HOT 1
- Port to macOS or Linux HOT 1
- PFM image with not-a-one scale is not displayed properly. HOT 3
- KTX 1.1 load error "Attempted to divide by zero." Image Viewer v3.4 HOT 8
- 3.5 download zip is tagged with a virus HOT 1
- Why astc and etc2 looks different from orginal png? HOT 6
- Add shortcut to turn off/on alpha channel and shortcut to show Alpha channel only. HOT 2
- when I read hdr I got a error [error during reading file ] HOT 7
- Hope to support horizontal or vertical CUbeMap conversion of latitude and longitude HOT 1
- malware included? im unsure... HOT 1
- ImageConsole.exe using float as a filterparam HOT 1
- 8K Cubemap HOT 4
- Channel Selector / Separator Dropdown HOT 13
- Crashes on loading sample KTX file HOT 7
- The type initializer for 'ImageFramework.DirectX.Device' threw an exception HOT 2
- Add the ability to change the color space of the image and save it with the applied parameter HOT 2
- Export Batch Command Bug
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 imageviewer.