Coder Social home page Coder Social logo

Comments (5)

solidpixel avatar solidpixel commented on September 17, 2024 1

Also more that origin is API dependent - DX/Vulkan is top left, GL/GLES is bottom left, so YMMV ...

from astc-encoder.

solidpixel avatar solidpixel commented on September 17, 2024

Ask Apple. How to interpret and present the decompressed image is up to the viewing application.

The compressor doesn't flip the image, and by convention the origin is top left corner. Looks like the thumbnail preview is using a bottom left corner origin.

from astc-encoder.

SudarshanShetty1796 avatar SudarshanShetty1796 commented on September 17, 2024

I don't think it is a thumbnail preview issue. If I decode it back with the ASTC decoder, the image gets rotated back to the original orientation. Additionally, I'm seeing the same flipping issue when importing it into the Unity game engine.

from astc-encoder.

solidpixel avatar solidpixel commented on September 17, 2024

ASTC doesn't flip the image unless you tell it to. PNG has a top-left origin. ASTC, by convention, has a top-left origin. We don't flip the data.

If the viewing application decides to interpret the data as a bottom left origin it's nothing to do with the texture format.

If you want to use textures in a system with a bottom left origin you will need to use -yflip.

from astc-encoder.

SudarshanShetty1796 avatar SudarshanShetty1796 commented on September 17, 2024

Cool, got it.

-yflip

was the solution, thanks.

from astc-encoder.

Related Issues (20)

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.