VTFLib v1.3.2 - VTFLib is available in a two flavours. The Source Code Archive contains the + source code, library and prebuilt binaries for VTFLib, VTFEdit and VTFCmd. Download this if you want + to modify the library or example applications (or just see how it all works). The Binary + Archive contains library and prebuilt binaries for VTFLib, VTFEdit and VTFCmd. Download this if + you just want to develop with VTFLib (or want access to all the binaries).
+ +VTFLib also uses nvDXT, + and VTFEdit and VTFCmd also use DevIL 1.7.8. In + order to compile, you will need to download those libraries and add their paths to Visual Studio.
+ + Download from Web Archive: + + + Download from unofficial Github mirror: + ++
+
VTFtex.zip
+ (200KB)
+
+
+
+ I do not know that visual C++ 2005 can't finish this source.
+ Sorry I do not look that "VISUAL C++ 2005" is worng, "VSIUAL C++ NET" ist right, Grr I download that + right file of VISAUL C++ NET now :-(
+
+ SnakeMedia
+
+
+ I'll likely convert the project to 2005 in the future, but it is too much of a pain and I have too many + other projects to do so at the moment.
+
+
+ Please give me right orginal link to Download-Detail with site!
+ ZThanks Gb SnakeMedia
+
+
+ http://developer.valvesoftware.com/wiki/Vtf#Version_history
+
+
+
+
+
+
+ Anyways I am designing a Scripter for CS:Source, and I was wondering if you could point me into the + right direction or at least provide some kind of code that will teach me how to use your library in a C# + project. If it helps these are the things that I would like to do.
+
+ A. Allow the user to view file info
+ - File Size
+ - Flags(Like the ones in your program: VTFEdit
+ - Dimensions(Width x Height)
+ - Version
+ - File Format
+ - Frames
+
+ B. Allow the user to pre-view a selected vtf/spray file in a picturebox.
+
+ Again any and all help is greatly appreciated I do know about "Dllimport" with C# but I have yet to work + with it. So if you could either respond here or at the forums I would greatly appreciate it.
+
+ - Poab
+
+
1>nvDXTlibMT.vc8.lib(dxt_compress.obj) : error LNK2019: unresolved external symbol _hypot + referenced in function "private: void __thiscall JAMA::Eigenvalue<double>::tql2(void)" + (?tql2@?$Eigenvalue@N@JAMA@@AAEXXZ)
1>nvDXTlibMT.vc8.lib(NormalMapGen.obj) : error LNK2019: + unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" + (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: class + std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > + & __thiscall std::basic_string<char,struct std::char_traits<char>,class + std::allocator<char> >::erase(unsigned int,unsigned int)" + (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z)
1>nvDXTlibMT.vc8.lib(NormalMapGen.obj) + : error LNK2019: unresolved external symbol "public: static void __cdecl + std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) referenced in function "protected: + bool __thiscall std::basic_string<char,struct std::char_traits<char>,class + std::allocator<char> >::_Grow(unsigned int,bool)" + (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z)
Guessing + that it was because dxtlib was built last for VC2010, I decided to try to dig up some source codes to + build a lib for VC2010, but all I found was code in tools/src, but it seemed to build the library I + needed (unless I'm wrong, which I could be). But it yielded this error:
Error 1 error LNK2019: + unresolved external symbol "enum NV_ERROR_CODE __cdecl nvDDS::nvDXTcompress(unsigned char const + *,unsigned int,unsigned int,unsigned int,enum nvPixelOrder,class nvCompressionOptions *,enum + NV_ERROR_CODE (__cdecl*)(void const *,unsigned int,struct MIPMapData const *,void *),struct tagRECT + const *)" + (?nvDXTcompress@nvDDS@@YA?AW4NV_ERROR_CODE@@PBEIIIW4nvPixelOrder@@PAVnvCompressionOptions@@P6A?AW42@PBXIPBUMIPMapData@@PAX@ZPBUtagRECT@@@Z) + referenced in function "unsigned char __cdecl nvDXTCompressWrapper(unsigned char *,unsigned + int,unsigned int,class nvCompressionOptions *,enum NV_ERROR_CODE (__cdecl*)(void const *,unsigned + int,struct MIPMapData const *,void *))" + (?nvDXTCompressWrapper@@YAEPAEIIPAVnvCompressionOptions@@P6A?AW4NV_ERROR_CODE@@PBXIPBUMIPMapData@@PAX@Z@Z) + C:\Users\Kevin\Documents\Visual Studio 2010\Resources\vtflib130\sln\vs8\VTFLib\VTFFile.obj
+
+ I am wondering if this is because DDS_Utilities is now version 8.31.1127.1645? Something is getting + skewed. Anyway, I don't expect you to know the answer for fix anything, just thinking out loud + mostly.
+
+ I guess I can try it out on VS2008 tomorrow. But I was just wondering about this since this is my first + go with dealing with vtflib's source. Since I don't really need the DDS stuff I might just cut out all + of the dxtlib stuff.
+
+ By the by, long time lurker big time fan of your tools Nem! Thanks for making them!
+
nvDXTLib is + only necessary for creating .vtf images. If you just want to be able to read .vtf images, you can + rebuild the library with USE_NVDXT=0 defined.
Another option is to dynamically import the C + version of the API.
If you don't have nxDXTLib installed you will have to download + it and update your VC++ Directories to point to it.
+
nvDXTLib + is only necessary for creating .vtf images. If you just want to be able to read .vtf images, you can + rebuild the library with USE_NVDXT=0 defined.
Another option is to dynamically import the C + version of the API.
If you don't have nxDXTLib installed you will have to download + it and update your VC++ Directories to point to it.
Yeah, I did download/install it + from that page, but the build they have is different than the version required in vtflib (the legacy + page you link to only has build 8.31.1127.1645 available for download). I wish they had some sort of + previous releases list.
That said, I _do_ only need the library for reading .vtf files, so maybe + I will just build it without NVDXT. Thanks for the tip! That will probably save more time than + dynamically importing the C version of the API.
FYI, just an update.
+ The Download link points to:
+
+ http://developer.download.nvidia.com/tools/texturetools/DDS_Utilities_8.31.1127.1645.exe
+
+ But if you just change the filename to the build mentioned in your comments in VTFFile.cpp + (8.31.0225.1745), it's still on the server for download. Here's the URL:
+
+ http://developer.download.nvidia.com/tools/texturetools/DDS_Utilities_8.31.0225.1745.exe
+
+ Might be helpful. +
+
+
+
+
New users can register here. +