Coder Social home page Coder Social logo

Comments (2)

SirYodaJedi avatar SirYodaJedi commented on May 23, 2024

I am also curious about this. ATI1N is identical in quality to the alpha channel of DXT5, so it works great for greyscale images (better than DXT1, which requires conversion to BGR). It would be great to use it for specular masks of materials that aren't bumpmapped, saving file size and VRAM compared to using uncompressed I8 or the alpha channel of a flat normal map (being the same quality of the latter), without the tinting that occurs when using DXT1.

Of course, it depends on whether Source 1 actually properly supports ATI1N; after all, the VTF format supports BGRA5551 BGR888_bluescreen, but the alpha channel of those formats always shows up as opaque in-game regardless.

from vtflib.

SirYodaJedi avatar SirYodaJedi commented on May 23, 2024

According to one of the developers behind Portal 2: Community Edition, ATI1N and ATI2N support is either broken or disabled in all Source Engine branches, so even if you encoded a VTF as such, it would fail to load in-game or in Hammer 4.
Version 7.6 VTFs (a custom version by the P2CE devs that supports deflate compression, which would be a much larger task for VTFLib to undertake) adds back support for these formats, but seeing as VTFLib is currently focused on the official versions of 7.5 and below, I think this issue should be closed @davie504 @NeilJed.

from vtflib.

Related Issues (16)

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.