{"id":253,"date":"2011-11-07T03:39:00","date_gmt":"2011-11-07T09:39:00","guid":{"rendered":"http:\/\/elysianshadows.com\/2011\/11\/the-dreamcast-shlib-strip-header-library-is-born\/"},"modified":"2011-11-07T03:39:00","modified_gmt":"2011-11-07T09:39:00","slug":"the-dreamcast-shlib-strip-header-library-is-born","status":"publish","type":"post","link":"http:\/\/elysianshadows.com\/updates\/the-dreamcast-shlib-strip-header-library-is-born\/","title":{"rendered":"The Dreamcast SHLib (Strip Header Library) is Born!"},"content":{"rendered":"\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">And in case anyone is wondering wtf the difference between the types are I thought I&#8217;d post this table as well:<\/p>\n<pre>Type   Primitive   Color       Modifier type   Textured   32BIT UV ----   ---------   -----       -------------   --------   -------- 00     Polygon     Packed      Shadow          No         - 01     Polygon     Float       Shadow          No         - 02     Polygon     Intensity   Shadow          No         - 03     Polygon     Packed      Shadow          Yes        Yes 04     Polygon     Packed      Shadow          Yes        No 05     Polygon     Float       Shadow          Yes        Yes 06     Polygon     Float       Shadow          Yes        No 07     Polygon     Intensity   Shadow          Yes        Yes 08     Polygon     Intensity   Shadow          Yes        No 09     Polygon     Packed      Two-parameter   No         - 10     Polygon     Intensity   Two-parameter   No         - 11     Polygon     Packed      Two-parameter   Yes        Yes 12     Polygon     Packed      Two-parameter   Yes        No 13     Polygon     Intensity   Two-parameter   Yes        Yes 14     Polygon     Intensity   Two-parameter   Yes        No 15     Sprite      Packed      -               No         - 16     Sprite      Packed      -               Yes        No 17     Modifier    -           -               -          - <\/pre>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">And since this is quite a beast I haven&#8217;t tested all of it. So let me know if something seems messed up.<\/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 our Private Development forum on 11.7.11.<\/strong><\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">I added the DC strip header lib I wrote to the repo (\/tools\/dc\/shlib\/). It lets you easily define strip headers for all 18 primitive (vertex\/sprite\/modifier) types available on the DC. You can also make changes without having to recompile them all the time.&nbsp;<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\">I did a test showing off all types at once numbered left to right, top to bottom with the last type (modifier volume) bouncing around the screen affecting color and texture of about half of the other types. It&#8217;s not visible by itself, but you can see it affecting 3 of the other types on the right side of the screen.&nbsp;<\/p>\n<p style=\"color: #333333; font-family: Tahoma, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-219\" src=\"http:\/\/elysianshadows.com\/updates\/wp-content\/uploads\/2012\/07\/shlib.png\" width=\"0\" height=\"0\" \/><\/p>\n","protected":false},"author":1,"featured_media":219,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-underlying-technology"],"_links":{"self":[{"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/posts\/253","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=253"}],"version-history":[{"count":0,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/media\/219"}],"wp:attachment":[{"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elysianshadows.com\/updates\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}