{"id":889,"date":"2011-06-01T16:45:22","date_gmt":"2011-06-01T23:45:22","guid":{"rendered":"http:\/\/the-witness.net\/news\/?p=889"},"modified":"2011-06-01T16:45:22","modified_gmt":"2011-06-01T23:45:22","slug":"thinking-about-color","status":"publish","type":"post","link":"http:\/\/the-witness.net\/news\/2011\/06\/thinking-about-color\/","title":{"rendered":"Thinking about color"},"content":{"rendered":"<p>We've known for a long time that we wanted some kind of color grading to happen in the postprocessing for The Witness; recently we started thinking about what that should be.  Shannon wanted to try having colored shadows, as painters often do.  We considered different ways of doing this; the \"right way\" to do it would involve keeping more data in offscreen buffers than we currently do, which could be expensive, but is definitely at least a hassle if you're just playing around with ideas.  So instead, we decided to play around with the ambient light color: in shadow, the color of the ambient light is going to be a large influence on the perceived color of the surface, whereas outside of shadow, the color of the sun or light source will dominate, so it can be functionally pretty close to having colored shadows.<\/p>\n<p>But we also figured, hey, why not play around with the color of sunlight as well?  The idea is that as you walk around in the game, the color of the sun and ambient light will interpolate as you move.  We haven't hooked it up that way yet; what you see below is just done by tweaking global variables in the game.  Well be doing more experiments in this direction...<\/p>\n<p><P><br \/>\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2011\/06\/newColor-brownside.jpg\"><img src=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2011\/06\/newColor-brownside-300x84.jpg\" alt=\"\" title=\"newColor-brownside\" width=\"300\" height=\"84\" class=\"aligncenter size-medium wp-image-911\" \/><\/a><\/p>\n<p><P><br \/>\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2011\/06\/newColor-gold-side.jpg\"><img src=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2011\/06\/newColor-gold-side-300x84.jpg\" alt=\"\" title=\"newColor-gold-side\" width=\"300\" height=\"84\" class=\"aligncenter size-medium wp-image-912\" \/><\/a><\/p>\n<p><P><br \/>\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2011\/06\/newColor-green-side.jpg\"><img src=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2011\/06\/newColor-green-side-300x84.jpg\" alt=\"\" title=\"newColor-green-side\" width=\"300\" height=\"84\" class=\"aligncenter size-medium wp-image-913\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve known for a long time that we wanted some kind of color grading to happen in the postprocessing for The Witness; recently we started thinking about what that should be. Shannon wanted to try having colored shadows, as painters often do. We considered different ways of doing this; the \u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"http:\/\/the-witness.net\/news\/2011\/06\/thinking-about-color\/\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/889"}],"collection":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/comments?post=889"}],"version-history":[{"count":21,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/889\/revisions"}],"predecessor-version":[{"id":1253,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/889\/revisions\/1253"}],"wp:attachment":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/media?parent=889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/categories?post=889"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/tags?post=889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}