{"id":252,"date":"2011-11-25T03:38:00","date_gmt":"2011-11-25T09:38:00","guid":{"rendered":"http:\/\/elysianshadows.com\/2011\/11\/texconv-and-palsync-dreamcast-tools-are-born\/"},"modified":"2011-11-25T03:38:00","modified_gmt":"2011-11-25T09:38:00","slug":"texconv-and-palsync-dreamcast-tools-are-born","status":"publish","type":"post","link":"http:\/\/elysianshadows.com\/updates\/texconv-and-palsync-dreamcast-tools-are-born\/","title":{"rendered":"Texconv and Palsync Dreamcast Tools are Born"},"content":{"rendered":"\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[u]texconv changes:[\/u]<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[list][*]The texture header struct is 24 bytes instead of 32. I removed the padding at the end.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[*]The preview option no longer takes a filename. It&#8217;s automatically written to &#8220;&lt;outfile&gt;_preview.png&#8221;.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[*]Palettes are written to &#8220;&lt;outfile&gt;.pal&#8221;.[\/list]<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[u]palsync changes:[\/u]<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[list][*]The texture header struct is 24 bytes instead of 32. I removed the padding at the end.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[*]Added a verbose flag.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[*]Due to having palettes separate from textures, it&#8217;s a bit messier to use. You have to supply pairs of textures and palettes instead of just textures. The textures are overwritten, but the palettes remain untouched.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[*]Nothing will happen unless all supplied textures and palettes are loaded successfully and are of the same color depth.[\/list]<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">The formats are even easier now that they&#8217;re split into two.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[u]Texture format:[\/u]<\/p>\n<pre>struct TextureHeader {     char    magic[4]; \/\/ \"TXTR\"     qint32  width;     qint32  height;     qint32  format;     qint32  flags;     qint32  size; }; Followed by \"header.size\" bytes of texture data. <\/pre>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[u]Palette format:[\/u]<\/p>\n<pre>struct PaletteHeader {     char    magic[4]; \/\/ \"PALT\"     qint32  num_colors; }; Followed by \"header.num_colors\" unsigned 32-bit ints, each representing a single ARGB8888 color. <\/pre>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">And here&#8217;s an incredibly boring screenshot showing off this stuff. The font, the frame and the window background (yes, it&#8217;s textured) share a palette.<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">[img]<a href=\"http:\/\/laddauppbilder.se\/?di=1013169779800\">http:\/\/laddauppbilder.se\/?di=1013169779800<\/a>[\/img]<\/p>\n","protected":false},"excerpt":{"rendered":"<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\"><strong>Originally posted by Tvspelsfreak (Anton Norgren) in Private Development on 11.25.11.<\/strong><\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\"><strong><br \/><\/strong>I&#8217;ve updated the DC tools [b]texconv[\/b] and [b]palsync[\/b].<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">Palettes are no longer embedded in the texture files but written separately.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-underlying-technology"],"_links":{"self":[{"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":0,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}