Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Conversion between DDS and VTF, without reencoding #17

Open
SirYodaJedi opened this issue Jun 30, 2022 · 0 comments
Open

Comments

@SirYodaJedi
Copy link

The DDS file format supports all of the same image formats as VTF (plus more), so there should be an option when importing a DDS file to retain source format or something along those lines (as long as the source DDS uses a compatible format and is a power of 2). Such an option would copy the image data and any mipmaps over to a VTF file (and create thumbnails, info resources, etc. if the user requests), while avoiding introducing green tint to DXTn or BGR565 textures and other lossy conversion issues.

Additionally, there could be an option to export as DDS, using the same image format as the source VTF.

I'm pretty sure this would be possible; while I am not familiar with the nitty gritty, I'd imagine that the image data itself can just be copied over, since both file formats encode the image using little endian with the same image formats designed for the GPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant