Valve Texture Format (vtf) support

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Valve Texture Format (vtf) support

Post by djcj »

The Valve Texture Format (VTF) is the proprietary texture format used by the Source engine.
https://developer.valvesoftware.com/wik ... ure_Format

It would be convenient if XnViewMP could handle this too, so I don't need to view .vtf files in VTFEdit.
You could use the LGPL licensed VTFLib for decoding: http://nemesis.thewavelength.net/index.php?c=177#p177
It will need some work to compile on Mac and Linux though.

Update:

There's a Qt plugin for it depending on a Linux-compatible port: https://github.com/panzi/qvtf
Requiring -> https://github.com/panzi/VTFLib
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Valve Texture Format (vtf) support

Post by xnview »

do you have some vtf file examples?
Pierre.
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Re: Valve Texture Format (vtf) support

Post by djcj »

I've attached a vtf file and its png export for comparison.
Attachments
bm_logo.zip
(32.1 KiB) Downloaded 106 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Valve Texture Format (vtf) support

Post by xnview »

ok, thanks XnView Classic support already VTF format, i'll add the support in XnView MP too
Pierre.
viKey
Posts: 7
Joined: Fri Apr 20, 2018 6:45 am

Re: Valve Texture Format (vtf) support

Post by viKey »

Support animation, like a gif, if it possible. And information of compress and flags, please.
relvistcb
Posts: 2
Joined: Fri Jun 28, 2024 4:04 am

Re: Valve Texture Format (vtf) support

Post by relvistcb »

I am using vftedit and paint.net to make pics to 512 x 512, I keep getting an error purple and black boxes. I put the vmt and vtf in materials folder in counter strike source. I post the pics I want as materials can someone do it correctly for me?
thanks
Attachments
jw1.png
dogsheron.png
hallway.png
hallway.png (476.3 KiB) Viewed 914 times
bar.png
bar.png (503.42 KiB) Viewed 914 times
continental logo2.jpg
continental logo2.jpg (91.19 KiB) Viewed 914 times
relvistcb
Posts: 2
Joined: Fri Jun 28, 2024 4:04 am

Re: Valve Texture Format (vtf) support

Post by relvistcb »

here is vmt

"LightmappedGeneric"
{
"$basetexture" "glass"
}
Post Reply