Trico-Everfire / VTF_Edit_Revitalized

VTF Edit Revitalized is a modern recreation of VTF Edit. Multi-Platform and rewritten in QT.
MIT License
13 stars 1 forks source link

Changing Static Cubemap Texture's Version corrupts it #20

Open jayrickaby opened 1 month ago

jayrickaby commented 1 month ago

When you use the version converter on a Static Cubemap Texture (e.g. materials/metal/black_wall_envmap_002a from Portal 2), the result is a corrupted VTF (as stated by VTFEdit Reloaded). It doesn't open in VTFEdit Revitalised.

This has also been tested on CSGO nuke cubemaps with the same result.

Converting from 7.5 -> 7.3

Trico-Everfire commented 1 month ago

This is likely because of the way cubemaps work in VTFs prior to 7.5. I don't think it generates the 7th face and thus shits itself when it cannot find it. This will be fixed in the 1.0 release, as VTFLib has been absconded with.

Trico-Everfire commented 1 month ago

Wouldn't 7.4 work too? 7.3 and 7.4 seem to be near identical except for some minor changes, afaik also the fix for spheremaps.

jayrickaby commented 1 month ago

Just tried 7.4, still corrupted. I believe also enabling "Recompute Reflectivity" also crashes the program when it comes to these textures

Trico-Everfire commented 1 month ago

I'd hold off for now then. VTFER 1.0 replaces VTFLib, if the bug persists past that I'll look into it further. sorry for the inconvenience.