From Valve Developer Community
Revision as of 23:50, 2 January 2010 by Campaignjunkie (talk | contribs) ($alphatestreference: new section)

Jump to: navigation, search

Gimp colour loss warning

Is this really necessary, given that saving as PNG allows colour information to be saved for completely transparent values, and the resulting PNG files can be imported into VTFEdit quite happily? It's not true to say that there's no workaround, it's just not default behaviour when saving as TGA. Longsight 18:42, 29 Aug 2008 (PDT)

That's never worked for me. The option is there, but the values are deleted anyway. --TomEdwards 06:15, 30 Aug 2008 (PDT)
Hmph, I'm sure it's worked for me. I'll check it again, and if it turns out it's not working, I'll put your message back. Longsight 11:18, 30 Aug 2008 (PDT)
Checked it out and it worked fine. Applied a 100% transparency mask to an image in GIMP and then saved it as a PNG with colour preserved, and it imported into VTFEdit with colour intact. The image I used can be found here if you want to check for yourself. Longsight 11:28, 30 Aug 2008 (PDT)


I noticed in the tree prop model VMTs for Episode 2, there's an "$alphatestreference" 0.5 in the VMT... So, what does this do, exactly? --Campaignjunkie (talk) 23:50, 2 January 2010 (UTC)