Comments (3)
I believe this is a bug with the viewer you're using. I tried both RenderDoc and Visual Studio and both view OUTPUT.dds correctly. For example, see this screenshot from RenderDoc:
I installed IrfanView based on your screenshot and was able to see the same error you did. However, given that two other tools display the .dds correctly, I'm certain that the bug here lies with IrfanView.
from cuttlefish.
I did a bit more troubleshooting, and I think I corrupted the TGA's header a tiny bit (bad height x width).
I think the TGA header passed some bad info to the DDS header in a non-essential way, because it only threw off irfan and the game I was trying to read it into.
So cuttlefish is functioning as intended, sorry for the false alarm! Thank you for looking into it though.
from cuttlefish.
Taking a quick look I'm not sure if there's a corrupt size. However, the width (4121) isn't a multiple of the BC7 block size (4x4), so most likely both IrfanView and the engine aren't handling this properly. The texture data will always be a multiple of the block size, but any extra pixels are discarded when displaying. For example, if IrfanView decodes 4124 pixels each line and displays as 4121 pixels (without discarding the remainder) that would explain the skew. The game engine may similarly be attempting to incorrectly round the size.
Either way these are bugs with the IrfanView and the engine, but the easiest way to avoid them is to make sure your image size is a multiple of 4.
from cuttlefish.
Related Issues (13)
- Configure prints "FreeImage not found" and "PVRTexLib not found" even though all git submodules are present HOT 2
- missing submodule commit for libsquish HOT 2
- Many tests fail: error: couldn't load image 'texture.png' HOT 14
- Many tests fail: error: couldn't load image 'texture.png' HOT 1
- Failure to write when output folder doesn't exist. HOT 7
- BC7 encoder is very slow HOT 15
- --swizzle channel ordering not working as expected. HOT 3
- PVRTC needs a squarepo2 option HOT 3
- BC1 vs. BC7 HOT 1
- Texture::maxMipmapLevels returns (seemingly) incorrect value for non-square images HOT 2
- error: cannot initialize return object of type 'BOOL' (aka 'int') with an rvalue of type 'nullptr_t' HOT 2
- error: unknown type name 'CMP_Vec3ui' HOT 3
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 cuttlefish.