{"id":662,"date":"2010-08-12T14:00:34","date_gmt":"2010-08-12T22:00:34","guid":{"rendered":"http:\/\/technofovea.com\/blog\/?p=662"},"modified":"2010-08-12T14:02:10","modified_gmt":"2010-08-12T22:02:10","slug":"model-parsing-oops","status":"publish","type":"post","link":"https:\/\/technofovea.com\/blog\/archives\/662","title":{"rendered":"Model Parsing: Oops"},"content":{"rendered":"<p>It looks like my current code for model skins is incorrect, which will cause problems detecting the right textures for all <strong>dynamic\/physics\/ragdoll<\/strong> models in your map&#8230; unless those models are extremely simple, like crates or barrels.<\/p>\n<p>In Hammer, you can specify a number for the &#8220;skin&#8221; that a prop uses, such as having a blue sign or a red sign. It turns out this is actually an index for a whole package of textures that work together. However, my code was developed and tested against simple models, so that there was a one-to-one relationship between the skin# chosen and which VMT needed to be used.<\/p>\n<p>In more complex props, this relationship is no longer valid. For example, a level-two dispenser-model has two skins, but four different materials. <\/p>\n<p>I&#8217;m working on fixing up my code so that it handles these cases properly in 2.0.3. Later, version 2.0.4 should have additional fixes that allow it to recognize a few more special-case materials, such as a the material for a model&#8217;s eyeballs. (Yes, eyeballs. They&#8217;re actually their own special thing, but you seldom see it used outside of NPC\/Player models.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It looks like my current code for model skins is incorrect, which will cause problems detecting the right textures for all dynamic\/physics\/ragdoll models in your map&#8230; unless those models are extremely simple, like crates or barrels. In Hammer, you can specify a number for the &#8220;skin&#8221; that a prop uses, such as having a blue [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[8],"_links":{"self":[{"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/posts\/662"}],"collection":[{"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/comments?post=662"}],"version-history":[{"count":4,"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/posts\/662\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/posts\/662\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/media?parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/categories?post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technofovea.com\/blog\/wp-json\/wp\/v2\/tags?post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}