Advertisement
ds84182

GXT Texture Format for OpenGX

Jul 5th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <~+,^C)z!!%/)b72<R$q+#\g7X-jgc0:D$5+ZOOUD>cm3')=?'$984bh(pg0K3J1\M==0WqVB
  2. D-bk@Zc?Y2/GZHh_bZe8jY:*1hYYnP4PhSh-4KS*Rm!.V]Y\Ec74ta\3RCi?q5]gmM-#+g?I]
  3. T[4?_#u\\=M:MY$8k)>Ch$9CaGP:\"*?f95:T>*Ghj([;a<r7%E#,u+@taIi>E8,=38c]X<oq
  4. gA70R5C^hkrI%)YE.<4mQ$n=pVD=]^8T6f"9\])~>
  5.  
  6. That right there is the texture for a dirt block. Full 32bit color image (which includes alpha) in a small amount of data. It's encoded in Base85, which inflates the data 1.5 times it's normal size, but it still is on par (or better) than the regular png format.
  7. Each texture in the Base85 format is compressed in GZIP, but the format for the data is even simpler. Each gxt has a small 4 byte header, and then all it's pixels laid out in a raw format.
  8.  
  9. Header: [short width] [short height]
  10. RGB Data (In the format of [byte r, byte g, byte b, byte a])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement