koerismo / PBR-2-Source

A Python-powered gui for converting pbr materials into Source Engine-compatible materials.
GNU General Public License v3.0
23 stars 2 forks source link

Feature request: VTF format options #13

Open Jofoyo opened 1 week ago

Jofoyo commented 1 week ago

Presently all textures will use uncompressed formats, however this is very debilitating in file size, having options at least to switch formats per texture is very desirable. Presently if using this I would absolutely need to manually do reconversions for sane file sizes.

DXT1 compression is very unnoticeable on albedos most of the time, especially at higher resolutions, and uncompressed is very overkill here. Modern day games still use DXT compression on albedos. DXT5 offers DXT RGB but uncompressed alpha and works great if it contains an envmapmask. If implementation is an issue you can see VTFEdit Reloaded for an updated compression binary from AMD.

Most of the channels in the phongexponent texture will go unused, and having just an I8 format would work here in a lot of cases. BGRX5551 and IA88 are also decent compromises in their own circumstances.

koerismo commented 5 days ago

Hi, this is actually a regression! Basetextures should be compressed by default, and bumpmaps left uncompressed. The library I use (srctools) does have this behavior implemented, however it is just not exposed through the image adapter currently.