Compression, Importer, Working on exporter.#2
Draft
Trico-Everfire wants to merge 4 commits intochev2:masterfrom
Draft
Compression, Importer, Working on exporter.#2Trico-Everfire wants to merge 4 commits intochev2:masterfrom
Trico-Everfire wants to merge 4 commits intochev2:masterfrom
Conversation
Author
|
Non power of 2 VTFs are in fact allowed. The need for power of 2 only was a limitation brought on by VTFLib because of it's unique structure internally. As well as that back in the early 2000s, GPU/CPU hardware did not like non power of two. These days, both GPU and CPUs, even as early as around 2010~ allow for non power of two texture/data to be used. Source has no problems loading these either from the experiments done by the creator of VTFPP. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've added the 7.6 compression elements to the exporter for strata source VTFs.
I've also improved the VTF importer to where it now no longer RGBA8888s everything. It now respects alpha (so formats with no alpha channel with become RGB888/161616f) as well As I8 and A8 becoming grayscale. I'm currently working on the exporter respecting the formats gimp supports in it's layers. A critical flaw is that if a format doesn't have an alpha channel or is smaller/greater than ui8 it will either crash the plugin or create corrupt image data. GIMP doesn't really like to share what formats it supports? So I'm trying to figure out how to translate the formats used by the drawables into as close of a match that VTFPP understands.
This plugin could be very useful when it works properly.