TexturesXMLExporter aims to extract all textures to an xml file, formatted to be loaded by javascript to present the textures as a webpage.
-
ImageMagick ( http://www.imagemagick.org/ ) ImageMagick is used to create the thumbnails of the textures. It can either be installed in the system, or provided in a portable version which can be used with the -im argument (see Optional command line arguments).
-
Boost ( http://www.boost.org/ ) Boost is used to access directories and files.
- fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib' ( http://stackoverflow.com/questions/13042561/fatal-error-lnk1104-cannot-open-file-libboost-system-vc110-mt-gd-1-51-lib/29567344#29567344 )
- Linker error LNK1104 with 'libboost_filesystem-vc100-mt-s-1_49.lib' ( http://stackoverflow.com/questions/9628527/linker-error-lnk1104-with-libboost-filesystem-vc100-mt-s-1-49-lib/9628724#9628724 )
- Include ImageMagick in project ( https://fortunomedia.com/magick-plus-plus-config-vs2010/ )
Drop the executable file inside the folder where the textures are being kept. Then execute it. TexturesXMLExporter creates a folder in the root path named exp_thumbs, which will contain all the thumbnails of all textures which will be created. All thumbnails will be in png file type and size of 200 width and 200 height. A file textures.xml will be generated with all the textures and their thumbnails in it.
- .png
- .jpg
- .tif
- .tga
- .psd
- .svg
- .dds
Map Type | Suffixes |
---|---|
Diffuse | _d, _baked |
Bump | _bmp, _bump |
Normal | _normal, _n, _ny+ |
Gloss | _g |
Height | _h |
Specular | _s, _spec |
Roughness | _r |
Metalness | m, _mt |
Emissive | e |
- -p Followed by a folder path it is used to use a custom path instead of the one the program is into. Example: "TexturesXMLExporter.exe -p C:\Users\Me\Textures" The thumbs folder and the textures.xml file will be generated to the custom path.
- -im Uses a local version of ImageMagick. Specifically requires the full path of the executable convert.exe. Example: "TexturesXMLExporter.exe -im C:\Users\Me\Downloads\ImageMagick-6.9.1-9-portable-Q16-x64\convert.exe"
- --version Prints out version of the program.
- --help Shows available parameters when executing from command line.
- TexturesXMLExporter checks existing thumbnails before it creates new ones. If a thumbnail exists it doesn't create a new one. If you wish to refresh a thumbnail (eg. if you changed the source texture), you can simply delete the thumbnail and re-run the executable to re-create it.
- Symbol & causes problems in the xml format. It is replaced by & .
- There is a probability that two or more maps have the same name. For that reason the thumbnail path of the maps contains a hash number of their original full path to eliminate that possiblity.
- Try GraphicsMagick
- What are the suffixes _t, _p?
- Maps with the same name with the material, and type Other, should be marked diffuse.
- Add to log file times for the tree ordering, thumbs generation, and xml generation.
- Check how to suppress ImageMagick messages in the command line.
- Copyright
- License
- Try other software to generate the thumbnails.
- Try to improve speed. Currently the most pressing performance issue is the generation of the thumbnails.
- Create a GUI. Windows Forms should be a sufficient first solution.