http://ufoai.org/w/index.php?title=Modelling/Skins&feed=atom&action=historyModelling/Skins - Revision history2024-03-29T01:00:50ZRevision history for this page on the wikiMediaWiki 1.35.4http://ufoai.org/w/index.php?title=Modelling/Skins&diff=41079&oldid=prevH-hour: /* General */2012-12-07T10:08:52Z<p><span dir="auto"><span class="autocomment">General</span></span></p>
<p><b>New page</b></p><div>==General==<br />
[[File:export_md2_skins_3dsm.jpg|thumb|Quick tutorial on setting up skins in 3dsm]]<br />
Our models need skins of course - these skins are images in jpg, png or tga file format. They should be in the same directory as the model (the [[md2]]) (somewhere below {{path|base/models/}}. You should enter the skin path as {{path|.skinfilename}}. The game will know to look in the same directory as the model for any jpg, png or tga file with that filename. The dimensions of these images should always be power of two.<br />
<br />
===Fileformat===<br />
To change the filenames of the textures or the amount of available skins you maybe (depends on the model format) have to edit the model files. <br />
<br />
To change the filenames of the textures or the amount of available skins you have to edit the [[md2]] files. <br />
<br />
There is a perl script available for that in {{path|src/tools}} called {{path|md2.pl}}.<br />
With this tool you can change the texture sizes, upgrade the number of skins & change skinnames. <br />
<br />
You need a Perl distribution to be able to execute the script. A good one for Windows would be {{http|www.activestate.com/activeperl/|ActivePerl}}.<br />
<br />
Be careful. The tool/script is not able to downgrade the number of skins in the [[md2]] file, just to upgrade them. To downgrade this number you have to edit byte 20 with a Hex-Editor (see md2 file/header definitions).<br />
<br />
==Links==<br />
* [[Modelling]]<br />
* [[md2]]<br />
* [http://tfc.duke.free.fr/coding/md2-specs-en.html .md2 File Format Specification (new) (tfc.duke.free.fr)]<br />
* [http://tfc.duke.free.fr/old/models/md2.htm .md2 format description and implementation for C++ including the entire file architecture (tfc.duke.free.fr)]<br />
<br />
[[Category:Contribute]]<br />
[[Category:Modelling]]</div>H-hour