Git Product home page Git Product logo

Comments (3)

akb825 avatar akb825 commented on June 11, 2024

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:
image

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.

emarron avatar emarron commented on June 11, 2024

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.

akb825 avatar akb825 commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.