VTF support

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

Post Reply
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

VTF support

Post by FrameX »

Hi!

Would be great, if support for the VTF (Valve Texture Format) could be added.

Info: http://developer.valvesoftware.com/wiki ... ure_Format

There also exists an Open Source library:
http://nemesis.thewavelength.net/index.php?p=40
User avatar
xnview
Author of XnView
Posts: 34938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: VTF support

Post by xnview »

Do you have some examples?
Pierre.
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

Indeed, here they are!
Attachments
vtfexamples.zip
(229.01 KiB) Downloaded 235 times
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

How is it going?
Did the links help?
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

If you need more (different) examples, just let me know..
User avatar
xnview
Author of XnView
Posts: 34938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: VTF support

Post by xnview »

FrameX wrote:If you need more (different) examples, just let me know..
Sorry i'll check asap...
Pierre.
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

I've uploaded a bunch of many different examples:
http://www.file-upload.net/download-244 ... s.zip.html

They are part of a free game demo.
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

I don't want to annoy anybody, but how likely is it now, that support for this format will be added and for which version would it be scheduled?

Don't get me wrong, I just really would like to see this added. But of course I have patience and understanding, if there are planned features with a higher priority. I just wanna make sure, that my request will not be forgotten.

I hope that the examples are useful by the way!
User avatar
oops66
XnThusiast
Posts: 2002
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: VTF support

Post by oops66 »

Hi,
It's done:
...See here: V1.97-3 : Added: VTF format load support (Plugin) :
http://newsgroup.xnview.com/viewtopic.php?f=35&t=19937
http://www.xnview.com/en/downloadwin32.html
FI: I have tried and that works for me (with your VTF samples) with the XnView 1.97-3 Windows version + Plugin (under Linux + Wine)

The WTF format seems to work too (I have not tested):
http://newsgroup.xnview.com/viewtopic.p ... 931#p83931

...But need to be added here:
http://www.xnview.com/en/formats.html
XnViewMP Linux X64 - Debian - X64
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

Thank you for the info!
I can't believe, that I missed it. :|

But it's great news. :D

Thank you very much, Pierre for implementing it!

But I've noticed two issues:

1. I don't have thumbnails in the Windows Explorer. Could you please extend the shell extension too, please?

2. Some textures are displayed incorrectly (some color parts of the images are missing).
I've uploaded an example.

Strangely, in the exports options of XNView, the file is displayed correctly and if I export/save the file as jpeg or something else, everything is fine and nothing lost. It seems, that only the main XNView display window can't handle it correctly.
Attachments
slimeoverlay001a.zip
The vtf file itself
(229.16 KiB) Downloaded 173 times
How it is displayed in XNView
How it is displayed in XNView
vtf_xnview.jpg (85 KiB) Viewed 5863 times
How it should look like
How it should look like
vtf.jpg (76.82 KiB) Viewed 5863 times
User avatar
oops66
XnThusiast
Posts: 2002
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: VTF support

Post by oops66 »

Hello,
For item 2: You have to disable the alpha channel: "Ctrl+H" shortcut ( alpha channel on/off)
XnViewMP Linux X64 - Debian - X64
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

Thank you again!

OK, last but not least the shell extension to have thumbnails in the Windows Explorer.
FrameX
Posts: 9
Joined: Sun Mar 14, 2010 6:18 pm

Re: VTF support

Post by FrameX »

Is it likely, that VTF thumbnail support for the Windows Explorer will be added?
OmegaThree
Posts: 2
Joined: Mon Sep 13, 2010 3:43 pm

Re: VTF support

Post by OmegaThree »

Thumbnail support was discussed here. The solution is here.
Post Reply