{"id":196,"date":"2010-03-29T06:08:20","date_gmt":"2010-03-29T06:08:20","guid":{"rendered":"http:\/\/the-witness.net\/news\/?p=196"},"modified":"2010-03-29T06:09:43","modified_gmt":"2010-03-29T06:09:43","slug":"graphics-tech-lighting-comparison","status":"publish","type":"post","link":"http:\/\/the-witness.net\/news\/2010\/03\/graphics-tech-lighting-comparison\/","title":{"rendered":"Graphics Tech: Lighting Comparison"},"content":{"rendered":"<p>It seems like time to post some images from the in-progress precoputed lighting tech that Ignacio is working on. \u00a0See <a href=\"http:\/\/the-witness.net\/news\/?p=50\">here<\/a> for a description of the basics behind what we are doing for lighting. \u00a0The lightmaps are now 16-bit and these shots use a simple exponential tone mapper.<\/p>\n<p>First, I've taken shots from 3 positions inside a house, with four different lighting settings. \u00a0For all four settings, we are computing only the first lighting bounce. \u00a0The parameters are:<\/p>\n<ol>\n<li>32x32 cube maps, adaptive sampling, quality = 0.5. \u00a0Time to compute: 197 seconds.<\/li>\n<li>32x32 cube maps, non-adaptive sampling. \u00a0Time to compute: 648 seconds.<\/li>\n<li>64x64 cube maps, non-adaptive sampling. \u00a0Time to compute: 738 seconds.<\/li>\n<li>128x128 cube maps, non-adaptive sampling. \u00a0Time to compute: 1570 seconds.<\/li>\n<\/ol>\n<p>(Click for full size).<\/p>\n<p style=\"text-align: center;\"><strong>Front Door:<\/strong><\/p>\n<p style=\"text-align: center;\"><strong> <\/strong><br \/>\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot1_32_b1_ay.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot1_32_b1_ay.jpg\" alt=\"shot1_32_b1_ay\" \/><\/a><\/p>\n<p style=\"text-align: center;\">32x32 adaptive<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot1_32_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot1_32_b1_an_sn.jpg\" alt=\"shot1_32_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">32x32<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot1_64_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot1_64_b1_an_sn.jpg\" alt=\"shot1_64_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">64x64<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot1_128_b1_ansn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot1_128_b1_ansn.jpg\" alt=\"shot1_128_b1_ansn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">128x128<\/p>\n<p style=\"text-align: center;\">\n<p><!--more--><\/p>\n<p style=\"text-align: center;\"><strong>Corner:<\/strong><br \/>\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot2_32_b1_ay.jpg\"><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot2_32_b1_ay.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot2_32_b1_ay.jpg\" alt=\"shot2_32_b1_ay\" \/><\/a><\/p>\n<p style=\"text-align: center;\">32x32 adaptive<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot2_32_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot2_32_b1_an_sn.jpg\" alt=\"shot2_32_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">32x32<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot2_64_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot2_64_b1_an_sn.jpg\" alt=\"shot2_64_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">64x64<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot2_128_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot2_128_b1_an_sn.jpg\" alt=\"shot2_128_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">128x128<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><strong>Side Wall:<\/strong><br \/>\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_32_b1_ay.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_32_b1_ay.jpg\" alt=\"shot3_32_b1_ay\" \/><\/a><\/p>\n<p style=\"text-align: center;\">32x32 adaptive<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_32_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_32_b1_an_sn.jpg\" alt=\"shot3_32_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">32x32<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_64_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_64_b1_an_sn.jpg\" alt=\"shot3_64_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">64x64<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_128_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_128_b1_an_sn.jpg\" alt=\"shot3_128_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">128x128<\/p>\n<p style=\"text-align: center;\">\n<p>The hardware used to compute these timings is an Intel Core i7-860 with an ATI Radeon 5870 (most of the process is GPU-bound).<\/p>\n<p>The non-adaptive sampling renders one cube map for each shadow map texel, whereas the adaptive sampling uses heuristics to place samples and then smoothes the map between them. \u00a0At higher quality settings, adaptive sampling provides more-accurate results, but there always seem to be artifacts, so for the time being we are using it as a fast preview mode. \u00a0If at some point the quality becomes shippable, then we would switch to adaptive sampling for everything.<\/p>\n<p>We also have a sub-texel sampling mode that improves quality, but I didn't play with that during this run.<\/p>\n<p style=\"text-align: left;\">This second set of images shows progressive bounces of the lighting with 64x64 cube maps, non-adaptive sampling. \u00a0(The first one is the same 64x64 image as above). \u00a0The times are: 1 bounce, 738 seconds; 2 bounces, 1438 seconds; 3 bounces, 2481 seconds. \u00a0The precompute time is basically linear in the number of bounces, as one might expect (the algorithm is basically just doing the same thing n times.)<\/p>\n<p style=\"text-align: left;\">\n<a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_64_b1_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_64_b1_an_sn.jpg\" alt=\"shot3_64_b1_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">1 bounce<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_64_b2_an_sn.jpg\"><img src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_64_b2_an_sn.jpg\" alt=\"shot3_64_b2_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">2 bounces<\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/shot3_64_b3_an_sn.jpg\"><img class=\"aligncenter\" src=\"http:\/\/the-witness.net\/news\/wp-content\/gallery\/precomputed-lighting-2\/thumbs\/thumbs_shot3_64_b3_an_sn.jpg\" alt=\"shot3_64_b3_an_sn\" \/><\/a><\/p>\n<p style=\"text-align: center;\">3 bounces<\/p>\n<p style=\"text-align: center;\">\n","protected":false},"excerpt":{"rendered":"<p>It seems like time to post some images from the in-progress precoputed lighting tech that Ignacio is working on. \u00a0See here for a description of the basics behind what we are doing for lighting. \u00a0The lightmaps are now 16-bit and these shots use a simple exponential tone mapper. First, I&#8217;ve \u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"http:\/\/the-witness.net\/news\/2010\/03\/graphics-tech-lighting-comparison\/\">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":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/196"}],"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=196"}],"version-history":[{"count":19,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":227,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/196\/revisions\/227"}],"wp:attachment":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/media?parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/categories?post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/tags?post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}