https://online.ts2009.com/mediaWiki/index.php?title=Opacity_map&feed=atom&action=historyOpacity map - Revision history2024-03-29T14:50:56ZRevision history for this page on the wikiMediaWiki 1.19.1https://online.ts2009.com/mediaWiki/index.php?title=Opacity_map&diff=2981&oldid=prevRetro00064: Some cleanup; added Category:Texture mapping.2011-09-05T02:01:16Z<p>Some cleanup; added <a href="/mediaWiki/index.php/Category:Texture_mapping" title="Category:Texture mapping">Category:Texture mapping</a>.</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 02:01, 5 September 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>An <del class="diffchange diffchange-inline">Opacity </del>map is typically a gray scale or single color texture map. Opacity maps represent the '''alpha''' channel or '''A''' part of a diffuse <del class="diffchange diffchange-inline">color </del>map.  The diffuse map contains the '''RGB<del class="diffchange diffchange-inline">''' '''</del>(red, green, blue)''' components. Older versions of the Trainz game required an opacity map be present when an alpha channel was required.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>An <ins class="diffchange diffchange-inline">'''opacity </ins>map<ins class="diffchange diffchange-inline">''' </ins>is typically a gray scale or single color texture map. Opacity maps represent the '''alpha''' channel or '''A''' part of a <ins class="diffchange diffchange-inline">[[</ins>diffuse map<ins class="diffchange diffchange-inline">]]</ins>.  The diffuse map contains the '''RGB (red, green, blue)''' components. Older versions of the Trainz game required an opacity map be present when an alpha channel was required.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The opacity map was frequently just a reference to the same diffuse map as it already contained RGBA components. Almost all Trainz materials were once [[m.onetex]]. Now Trainz supports many materials, each requiring multiple texture maps, and each texture map potentially requiring an alpha channel.  As there was no way to specify opacity (alpha) maps for each texture, content creators were required to hand edit the [[.texture.txt Files|.texture.txt]] files and manually reference the opacity texture maps.  The current [[Max Exporters | exporter]] allows a single RGBA texture to be specified for any texture map and will generate an appropriate [[.texture.txt Files|.texture.txt]] file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The opacity map was frequently just a reference to the same diffuse map as it already contained RGBA components. Almost all Trainz materials were once [[m.onetex]]. Now Trainz supports many materials, each requiring multiple texture maps, and each texture map potentially requiring an alpha channel.  As there was no way to specify opacity (alpha) maps for each texture, content creators were required to hand edit the [[.texture.txt Files|.texture.txt]] files and manually reference the opacity texture maps.  The current [[Max Exporters | exporter]] allows a single RGBA texture to be specified for any texture map and will generate an appropriate [[.texture.txt Files|.texture.txt]] file.</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Almost all materials were once [[m.onetex]] and the 3ds Max Material Editor had plenty of free texture slots, the opacity channel chosen to specify the alpha channel.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Almost all materials were once [[m.onetex]] and the 3ds Max Material Editor had plenty of free texture slots, the opacity channel chosen to specify the alpha channel.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>With [[TS2009]] a separate opacity map is not needed or recommended.  Here are some recommendations and justifications:</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>With [[TS2009]]<ins class="diffchange diffchange-inline">, </ins>a separate opacity map is not needed or recommended.  Here are some recommendations and justifications:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Textures should be 24bit (RGB) or 32bit (RGBA) .TGA files. 24bit RGB if opaque, 32bit RGBA if transparent or alpha channel is required. The TGA file format is not compressed, so no texture quality will be lost. When the texture is used in the game, it will have been compressed to an appropriate format depending on its type.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Textures should be 24bit (RGB) or 32bit (RGBA) .TGA files. 24bit RGB if opaque, 32bit RGBA if transparent or alpha channel is required. The TGA file format is not compressed, so no texture quality will be lost. When the texture is used in the game, it will have been compressed to an appropriate format depending on its type.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* The presence of an alpha channel still determines if transparency is used. So if part of a mesh (ie. cabin windows) use transparency, use two different materials and textures, one for the opaque sections, the other for the transparent ones.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* The presence of an alpha channel still determines if transparency is used. So if part of a mesh (ie. cabin windows) use transparency, use two different materials and textures, one for the opaque sections, the other for the transparent ones.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Specify transparent textures by selecting an RGBA texture and make sure the alpha channel is used as a source.  Refer to ''[[Exporting with 3D Studio Max]]'' for more details.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Specify transparent textures by selecting an RGBA texture and make sure the alpha channel is used as a source.  Refer to ''[[Exporting with 3D Studio Max]]'' for more details.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Texture mapping]]</ins></div></td></tr>
</table>Retro00064https://online.ts2009.com/mediaWiki/index.php?title=Opacity_map&diff=648&oldid=prevWindwalkr: 1 revision2010-02-03T13:59:34Z<p>1 revision</p>
<table class='diff diff-contentalign-left'>
<tr valign='top'>
<td colspan='1' style="background-color: white; color:black;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black;">Revision as of 13:59, 3 February 2010</td>
</tr></table>Windwalkrhttps://online.ts2009.com/mediaWiki/index.php?title=Opacity_map&diff=647&oldid=prevGreg at 23:51, 8 December 20082008-12-08T23:51:10Z<p></p>
<p><b>New page</b></p><div>An Opacity map is typically a gray scale or single color texture map. Opacity maps represent the '''alpha''' channel or '''A''' part of a diffuse color map. The diffuse map contains the '''RGB''' '''(red, green, blue)''' components. Older versions of the Trainz game required an opacity map be present when an alpha channel was required.<br />
<br />
The opacity map was frequently just a reference to the same diffuse map as it already contained RGBA components. Almost all Trainz materials were once [[m.onetex]]. Now Trainz supports many materials, each requiring multiple texture maps, and each texture map potentially requiring an alpha channel. As there was no way to specify opacity (alpha) maps for each texture, content creators were required to hand edit the [[.texture.txt Files|.texture.txt]] files and manually reference the opacity texture maps. The current [[Max Exporters | exporter]] allows a single RGBA texture to be specified for any texture map and will generate an appropriate [[.texture.txt Files|.texture.txt]] file.<br />
<br />
There were several reasons for independantly specifying the opacity map:<br />
* Materials could determine if they were opaque or transparent based on the presence of an alpha channel in the material configuration.<br />
* The same texture could be shared between two logical materials, one part opaque the other transparent.<br />
* Classic .BMP and .JPG files, supporting 8 and 24 bit textures, could be used to specify a single 32bit texture.<br />
* Almost all materials were once [[m.onetex]] and the 3ds Max Material Editor had plenty of free texture slots, the opacity channel chosen to specify the alpha channel.<br />
<br />
With [[TS2009]] a separate opacity map is not needed or recommended. Here are some recommendations and justifications:<br />
* Textures should be 24bit (RGB) or 32bit (RGBA) .TGA files. 24bit RGB if opaque, 32bit RGBA if transparent or alpha channel is required. The TGA file format is not compressed, so no texture quality will be lost. When the texture is used in the game, it will have been compressed to an appropriate format depending on its type.<br />
* The presence of an alpha channel still determines if transparency is used. So if part of a mesh (ie. cabin windows) use transparency, use two different materials and textures, one for the opaque sections, the other for the transparent ones.<br />
* Specify transparent textures by selecting an RGBA texture and make sure the alpha channel is used as a source. Refer to ''[[Exporting with 3D Studio Max]]'' for more details.</div>Greg