{"id":216,"date":"2007-05-14T14:31:20","date_gmt":"2007-05-14T18:31:20","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=216"},"modified":"2007-05-14T14:31:20","modified_gmt":"2007-05-14T18:31:20","slug":"fake-lit-planets","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2007\/05\/14\/fake-lit-planets\/","title":{"rendered":"Fake lit planets"},"content":{"rendered":"<p>\t\t\t\tI figured out a way to do unlimited light support for animated spinning planets in my game virtually for free.<\/p>\n<p>Animation: Planets are spheres, so just scroll the U of the UV channel for the diffuse map.<\/p>\n<p>Lights: Precompute an emissive map (including light colors), put it on a different UV channel.<\/p>\n<p>Only potential problem is normal mapping won&#8217;t work unless I were to put the light angle in the emissive map, but planets are so far away it doesn&#8217;t matter.<\/p>\n<p>Here&#8217;s a video<br \/>\n<a HREF=\"http:\/\/www.rakkar.org\/blog\/images\/EmissiveScroll.avi\">Emissive Scroll<\/a><\/p>\n<p>There are NO lights and NO animation in that scene.  I did that emissive map by hand but by rendering to texture it would look a lot better.<\/p>\n<p>Diffuse map<br \/>\n<img SRC=\"http:\/\/www.rakkar.org\/blog\/images\/PlanetDM.jpg\"\/><\/p>\n<p>Emissive map<br \/>\n<img SRC=\"http:\/\/www.rakkar.org\/blog\/images\/PlanetEmissive.jpg\"\/>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I figured out a way to do unlimited light support for animated spinning planets in my game virtually for free. Animation: Planets are spheres, so just scroll the U of the UV channel for the diffuse map. Lights: Precompute an emissive map (including light colors), put it on a different UV channel. Only potential problem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/216"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}