A KF5 update of KIO-VTF-Thumb-Creator by Mathias "Panzi" Panzenböck.
Run build_and_install.sh
to build and install (duh).
- Depends on VTFLib.
- Pass
-DUSE_LIBTXC_DXTN=OFF
when generating VTFLibs build files if you don't want to have to download, build and install libtxc_dxtn first. - Ensure you have the necessary Qt5 and KF5 development packages installed. (you're unfortunately on your own wrt figuring out exactly which packages those are, as I can't find any concrete answers to that myself...)
- Fix DXT1 alpha bug.
- Find out if there's a way to require that a file has both the .vtf extension and
VTF\x00
magic to fix VPK thumbnail bug. - Maybe add animated hover-over preview for animated textures.
Plugin for KDE KIO thumbnail to load Valve Texture Files (read-only). Using this you will be able to preview VTF files in KDE programs like Dolphin.
For a general read-only integration into Qt applications (e.g. view VTF files in Gwenview) see qvtf and for the same for Gtk+ see pixbufloader-vtf.
git clone https://github.com/panzi/KIO-VTF-Thumb-Creator.git
mkdir KIO-VTF-Thumb-Creator/build
cd KIO-VTF-Thumb-Creator/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
To enable previews in Dolphin open the settings dialog (Control -> Configure Dolphin...) and enable Valve Texture Format under General -> Previews.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.