<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.simswiki.info/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=TXTR</id>
		<title>TXTR - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=TXTR"/>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=TXTR&amp;action=history"/>
		<updated>2026-05-09T12:58:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://simswiki.info/index.php?title=TXTR&amp;diff=59882&amp;oldid=prev</id>
		<title>Kiwi tea at 19:10, 17 September 2012</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=TXTR&amp;diff=59882&amp;oldid=prev"/>
				<updated>2012-09-17T19:10:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:10, 17 September 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{OldWikiEntry}} ==This file type uses the Resource Collection format [[RCOL]].==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{OldWikiEntry}} &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==This file type uses the Resource Collection format [[RCOL]].==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 94:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 96:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You can see the Java code snip used to decode DXT1 &amp;amp; DXT3 data blocks here:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You can see the Java code snip used to decode DXT1 &amp;amp; DXT3 data blocks here:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;http:''home.carolina.rr.com/dhmtb/snip.java&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;http:''home.carolina.rr.com/dhmtb/snip.java&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Use it in any way you see fit. [[Category:Modding]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Use it in any way you see fit. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Sims 2 &lt;/ins&gt;Modding]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kiwi tea</name></author>	</entry>

	<entry>
		<id>http://simswiki.info/index.php?title=TXTR&amp;diff=3868&amp;oldid=prev</id>
		<title>Delphy: Auto-inserted from WakkaWikki</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=TXTR&amp;diff=3868&amp;oldid=prev"/>
				<updated>2004-11-10T18:31:13Z</updated>
		
		<summary type="html">&lt;p&gt;Auto-inserted from WakkaWikki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{OldWikiEntry}} ==This file type uses the Resource Collection format [[RCOL]].==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TXTR file format:'''&lt;br /&gt;
The texture files can store a variable size image, alpha channel and MIP maps in a variety of formats.&lt;br /&gt;
The basic layout is:&lt;br /&gt;
&lt;br /&gt;
''TXTR Header''&lt;br /&gt;
''''&lt;br /&gt;
''MIP Image Header''&lt;br /&gt;
''MIP Image Data''&lt;br /&gt;
''''&lt;br /&gt;
''MIP Image Header''&lt;br /&gt;
''MIP Image Data''&lt;br /&gt;
''''&lt;br /&gt;
''.''&lt;br /&gt;
''.''&lt;br /&gt;
''.''&lt;br /&gt;
''''&lt;br /&gt;
''Tail data''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Header is a standard [[RCOL]] header&lt;br /&gt;
the texture block is coded as follows&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1 $len(0xa)&lt;br /&gt;
10 &amp;quot;cImageData&amp;quot;&lt;br /&gt;
4 0x1c4a276c&lt;br /&gt;
4 modifier(7,9)&lt;br /&gt;
insert [[cSGResource]] here&lt;br /&gt;
4 texture width&lt;br /&gt;
4 texture height&lt;br /&gt;
4 format code&lt;br /&gt;
&lt;br /&gt;
4 mipmapLevels&lt;br /&gt;
2 unknown 0&lt;br /&gt;
2 unknown (3f80,4040,4000)&lt;br /&gt;
4 outerloopCount&lt;br /&gt;
  4 unknown(0)&lt;br /&gt;
if modifier=9&lt;br /&gt;
  1 unknown(0)&lt;br /&gt;
endif&lt;br /&gt;
loop(outerloopCount)&lt;br /&gt;
  case(modifier)&lt;br /&gt;
	7:&lt;br /&gt;
	  innerloopCount=mipmapCount&lt;br /&gt;
	9:&lt;br /&gt;
	  4 innerloopCount&lt;br /&gt;
  endcase&lt;br /&gt;
  loop(innerloopCount)&lt;br /&gt;
	1 dataType&lt;br /&gt;
	case (dataType)&lt;br /&gt;
	  0:&lt;br /&gt;
	    4 imagedata size&lt;br /&gt;
	    n data&lt;br /&gt;
	  1:&lt;br /&gt;
	    1 $len&lt;br /&gt;
	    n $(name of a LIFO file)&lt;br /&gt;
	endcase&lt;br /&gt;
  endloop&lt;br /&gt;
  case (modifier)&lt;br /&gt;
	7:&lt;br /&gt;
	  4 unknown(00 00 00 ff)&lt;br /&gt;
	9:&lt;br /&gt;
	  4 unknown&lt;br /&gt;
	  4 unknown(00 00 21 41)&lt;br /&gt;
  endcase&lt;br /&gt;
endloop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
MIP maps are stored smallest to largest and generally start with a 1x1 image and can be &lt;br /&gt;
&lt;br /&gt;
put into a DDS container.&lt;br /&gt;
Some TXTR files do not offer MIP maps.&lt;br /&gt;
&lt;br /&gt;
Image data&lt;br /&gt;
The size is based on the image format.&lt;br /&gt;
If this is a MIP, read the data size from the header and figure out the correct &lt;br /&gt;
&lt;br /&gt;
dimensions,&lt;br /&gt;
they will be proportional to the width/height found in the TXTR header.&lt;br /&gt;
See the Image format codes for the data size per pixel formula.&lt;br /&gt;
&lt;br /&gt;
Image format codes&lt;br /&gt;
0=???&lt;br /&gt;
1=Raw A8 R8 G8 B8, total data size = width*height*4&lt;br /&gt;
2=Raw R8 G8 B8, total data size = width*height*3&lt;br /&gt;
3=???&lt;br /&gt;
4=DXT1 RGB (no alpha bit) total data size = width*height/2&lt;br /&gt;
5=DXT3 ARGB, total data size = width*height&lt;br /&gt;
6=Raw Grayscale, total data size = width*height&lt;br /&gt;
7... = ???&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can see the Java code snip used to decode DXT1 &amp;amp; DXT3 data blocks here:&lt;br /&gt;
http:''home.carolina.rr.com/dhmtb/snip.java&lt;br /&gt;
Use it in any way you see fit. [[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>Delphy</name></author>	</entry>

	</feed>