Ray Tracing: shading

Size: px
Start display at page:

Download "Ray Tracing: shading"

Transcription

1 Ray Tracing: shading CS 4620 Lecture Steve Marschner 1

2 Image so far With eye ray generation and scene intersection for 0 <= iy < ny for 0 <= ix < nx { ray = camera.getray(ix, iy); c = scene.trace(ray, 0, +inf); image.set(ix, iy, c); } Scene.trace(ray, tmin, tmax) { surface, t = surfs.intersect(ray, tmin, tmax); if (surface!= null) return surface.color(); else return black; } 2018 Steve Marschner 2

3 Shading Compute light reflected toward camera Inputs: eye direction light direction (for each of many lights) surface normal surface parameters (color, roughness, ) l n v 2018 Steve Marschner 3

4 Shading philosophy Goals of shading depend on purpose of image visualization, CAD: maximize visual clarity visual effects, advertising: maximize resemblance to reality animation, games: somewhere in between Basic starting point: physics of light reflection a set of useful approximations to real surfaces can remove things for simplicity/clarity can add things for increased accuracy/realism 2018 Steve Marschner 4

5 Light Think of light as a flow of particles through space disregarding wave nature: polarization, interference, diffraction for now disregarding color: only how much light Sources of light point sources (a flashlight) we will stick to this for now. directional sources (the sun) area sources (a fluorescent tube) environment sources (the sky) 2018 Steve Marschner 5

6 P<latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> Light falloff r irradiance here: P/(4 r 2 ) power: <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> 1 irradiance here: P/(4 ) 2018 Steve Marschner 6

7 P<latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> Light falloff r irradiance here: P/(4 r 2 ) power: <latexit sha1_base64="e0l+vdaixf9rbmn3zpt7mbpltkk=">aaacjhicbvbltimxek0gbkiy/ks2fhesi5l0j0qirecwyceispsaleti7vsdhe1ubdciauueboemniyvysggm3aena4gzoasld2/qleff6wcgxsez97y+mspyansdhnm5+zc/mli0h+tzjphybkr6joighrcywi5fxisaqqyengcxewn88dxqa1p1jhtp9iv9ezxmdnqhxxyol2obnwgcpi/ql2dyvyrfne6xftmor2ezrkvzyia064fqf0vc7xu3zxqy5naqbmtguwpu6bn2hzquymmmxf7dsiay3oktrr7ypkc/ariqtsmlynxkak9n//mhur3uxzm42y35yrnlco2ghrngtiedi8npa6rwdf3gdln3a6envnnmxuwltufmpdd436+0di/4jgmuu9bvjaxzxutwq99n1fz699xrpw7pncwua83gxtkbdzqh6d56wbyr25vg8ngzwd35csuyavwyr1qsak7sa8tciebwg3cwp137z14j97tqhtme9csw1/hvbwbclcl/g==</latexit> 1 irradiance here: P/(4 ) 2018 Steve Marschner 6

8 <latexit sha1_base64="vrv6dp9yvhldalgapxyn1znnobk=">aaacanicbzdlsgmxgix/8vrrrepon8eiucrtdsc6efvdukxgbaezlkyaaumzf5kmuiacg1/fjqsvtz6fo9/crzcdvvf2ipbxzv+t5lgrz1kz5psxmzs3v7cywcour6yurec2ni9lgatcgytkowi5wfloatpqthhaigtfvstp0x2cjvpmnrwshcgfgkbu8xevyb4jwgmrk9uud2rocnwr7qlmktooseyiixfvgnvyebngpkj/otif/pe7pkp3cq92nysxtwnfojayxtqj5srykey4hwxtwniikwhu0bbgaptuokn6hxha004xeahqj1aodb9vjnixcui7etlhqi9/z2pzv6wdk6/ijcyiykudmrniizlsiroxgrpmukl4uammgum3itlhugyla8umjvilusuqowmui59q+sqhusocfsxzk189mzqbgdibxdihihxafc6gdg0gcan38acpxq1xbzwzz5prgwo6swu/zlx8amjwl4u=</latexit> <latexit sha1_base64="vrv6dp9yvhldalgapxyn1znnobk=">aaacanicbzdlsgmxgix/8vrrrepon8eiucrtdsc6efvdukxgbaezlkyaaumzf5kmuiacg1/fjqsvtz6fo9/crzcdvvf2ipbxzv+t5lgrz1kz5psxmzs3v7cywcour6yurec2ni9lgatcgytkowi5wfloatpqthhaigtfvstp0x2cjvpmnrwshcgfgkbu8xevyb4jwgmrk9uud2rocnwr7qlmktooseyiixfvgnvyebngpkj/otif/pe7pkp3cq92nysxtwnfojayxtqj5srykey4hwxtwniikwhu0bbgaptuokn6hxha004xeahqj1aodb9vjnixcui7etlhqi9/z2pzv6wdk6/ijcyiykudmrniizlsiroxgrpmukl4uammgum3itlhugyla8umjvilusuqowmui59q+sqhusocfsxzk189mzqbgdibxdihihxafc6gdg0gcan38acpxq1xbzwzz5prgwo6swu/zlx8amjwl4u=</latexit> <latexit sha1_base64="vrv6dp9yvhldalgapxyn1znnobk=">aaacanicbzdlsgmxgix/8vrrrepon8eiucrtdsc6efvdukxgbaezlkyaaumzf5kmuiacg1/fjqsvtz6fo9/crzcdvvf2ipbxzv+t5lgrz1kz5psxmzs3v7cywcour6yurec2ni9lgatcgytkowi5wfloatpqthhaigtfvstp0x2cjvpmnrwshcgfgkbu8xevyb4jwgmrk9uud2rocnwr7qlmktooseyiixfvgnvyebngpkj/otif/pe7pkp3cq92nysxtwnfojayxtqj5srykey4hwxtwniikwhu0bbgaptuokn6hxha004xeahqj1aodb9vjnixcui7etlhqi9/z2pzv6wdk6/ijcyiykudmrniizlsiroxgrpmukl4uammgum3itlhugyla8umjvilusuqowmui59q+sqhusocfsxzk189mzqbgdibxdihihxafc6gdg0gcan38acpxq1xbzwzz5prgwo6swu/zlx8amjwl4u=</latexit> <latexit sha1_base64="vrv6dp9yvhldalgapxyn1znnobk=">aaacanicbzdlsgmxgix/8vrrrepon8eiucrtdsc6efvdukxgbaezlkyaaumzf5kmuiacg1/fjqsvtz6fo9/crzcdvvf2ipbxzv+t5lgrz1kz5psxmzs3v7cywcour6yurec2ni9lgatcgytkowi5wfloatpqthhaigtfvstp0x2cjvpmnrwshcgfgkbu8xevyb4jwgmrk9uud2rocnwr7qlmktooseyiixfvgnvyebngpkj/otif/pe7pkp3cq92nysxtwnfojayxtqj5srykey4hwxtwniikwhu0bbgaptuokn6hxha004xeahqj1aodb9vjnixcui7etlhqi9/z2pzv6wdk6/ijcyiykudmrniizlsiroxgrpmukl4uammgum3itlhugyla8umjvilusuqowmui59q+sqhusocfsxzk189mzqbgdibxdihihxafc6gdg0gcan38acpxq1xbzwzz5prgwo6swu/zlx8amjwl4u=</latexit> <latexit sha1_base64="vrv6dp9yvhldalgapxyn1znnobk=">aaacanicbzdlsgmxgix/8vrrrepon8eiucrtdsc6efvdukxgbaezlkyaaumzf5kmuiacg1/fjqsvtz6fo9/crzcdvvf2ipbxzv+t5lgrz1kz5psxmzs3v7cywcour6yurec2ni9lgatcgytkowi5wfloatpqthhaigtfvstp0x2cjvpmnrwshcgfgkbu8xevyb4jwgmrk9uud2rocnwr7qlmktooseyiixfvgnvyebngpkj/otif/pe7pkp3cq92nysxtwnfojayxtqj5srykey4hwxtwniikwhu0bbgaptuokn6hxha004xeahqj1aodb9vjnixcui7etlhqi9/z2pzv6wdk6/ijcyiykudmrniizlsiroxgrpmukl4uammgum3itlhugyla8umjvilusuqowmui59q+sqhusocfsxzk189mzqbgdibxdihihxafc6gdg0gcan38acpxq1xbzwzz5prgwo6swu/zlx8amjwl4u=</latexit> <latexit sha1_base64="3ihafynm2egdl5c9t10sw8xhnvi=">aaacj3icbzdlsgmxfibpelfeqi7dbivgqs7uaetctirgcgrrc20tmtsjwcyfjcouyr7hja/irkrfl76bj2a6u0wrbwjf/v8ctvk7ewdsmeabmty+mtk1ptnbmjtfwfwqlq+cyzawhnzjyeprdlgknaw0rpjitbkjin2x04z7fttwgzdusbygz6of0y6plwpmmykvlrrf/wo0h5xudw2hmqa2jzbjndsx2xfd4qksjorp8gqlycdufktm2cwk/qvrckx9d8jk6ryf272qxd4nfofyypzlrqqtykey4tqttgnji0yu8svtaqywt2unyt6aog2t9jaxcn0chtl150scfsn7vqs7fayu5kg3ep/zwrhyqp2ebvgsaedyrv7mkqrridxuy4isxfsambfmvxwrk6xzudrbqhacxalu7w2uw7b1bdxveoqv8m7zplvlb4d5gdada7aom2dbdhzacthqbwk3ca9p8gzcgq/gi/gat44zw5lv+fxg+yfzkkvh</latexit> <latexit sha1_base64="3ihafynm2egdl5c9t10sw8xhnvi=">aaacj3icbzdlsgmxfibpelfeqi7dbivgqs7uaetctirgcgrrc20tmtsjwcyfjcouyr7hja/irkrfl76bj2a6u0wrbwjf/v8ctvk7ewdsmeabmty+mtk1ptnbmjtfwfwqlq+cyzawhnzjyeprdlgknaw0rpjitbkjin2x04z7fttwgzdusbygz6of0y6plwpmmykvlrrf/wo0h5xudw2hmqa2jzbjndsx2xfd4qksjorp8gqlycdufktm2cwk/qvrckx9d8jk6ryf272qxd4nfofyypzlrqqtykey4tqttgnji0yu8svtaqywt2unyt6aog2t9jaxcn0chtl150scfsn7vqs7fayu5kg3ep/zwrhyqp2ebvgsaedyrv7mkqrridxuy4isxfsambfmvxwrk6xzudrbqhacxalu7w2uw7b1bdxveoqv8m7zplvlb4d5gdada7aom2dbdhzacthqbwk3ca9p8gzcgq/gi/gat44zw5lv+fxg+yfzkkvh</latexit> <latexit sha1_base64="3ihafynm2egdl5c9t10sw8xhnvi=">aaacj3icbzdlsgmxfibpelfeqi7dbivgqs7uaetctirgcgrrc20tmtsjwcyfjcouyr7hja/irkrfl76bj2a6u0wrbwjf/v8ctvk7ewdsmeabmty+mtk1ptnbmjtfwfwqlq+cyzawhnzjyeprdlgknaw0rpjitbkjin2x04z7fttwgzdusbygz6of0y6plwpmmykvlrrf/wo0h5xudw2hmqa2jzbjndsx2xfd4qksjorp8gqlycdufktm2cwk/qvrckx9d8jk6ryf272qxd4nfofyypzlrqqtykey4tqttgnji0yu8svtaqywt2unyt6aog2t9jaxcn0chtl150scfsn7vqs7fayu5kg3ep/zwrhyqp2ebvgsaedyrv7mkqrridxuy4isxfsambfmvxwrk6xzudrbqhacxalu7w2uw7b1bdxveoqv8m7zplvlb4d5gdada7aom2dbdhzacthqbwk3ca9p8gzcgq/gi/gat44zw5lv+fxg+yfzkkvh</latexit> <latexit sha1_base64="3ihafynm2egdl5c9t10sw8xhnvi=">aaacj3icbzdlsgmxfibpelfeqi7dbivgqs7uaetctirgcgrrc20tmtsjwcyfjcouyr7hja/irkrfl76bj2a6u0wrbwjf/v8ctvk7ewdsmeabmty+mtk1ptnbmjtfwfwqlq+cyzawhnzjyeprdlgknaw0rpjitbkjin2x04z7fttwgzdusbygz6of0y6plwpmmykvlrrf/wo0h5xudw2hmqa2jzbjndsx2xfd4qksjorp8gqlycdufktm2cwk/qvrckx9d8jk6ryf272qxd4nfofyypzlrqqtykey4tqttgnji0yu8svtaqywt2unyt6aog2t9jaxcn0chtl150scfsn7vqs7fayu5kg3ep/zwrhyqp2ebvgsaedyrv7mkqrridxuy4isxfsambfmvxwrk6xzudrbqhacxalu7w2uw7b1bdxveoqv8m7zplvlb4d5gdada7aom2dbdhzacthqbwk3ca9p8gzcgq/gi/gat44zw5lv+fxg+yfzkkvh</latexit> <latexit sha1_base64="3ihafynm2egdl5c9t10sw8xhnvi=">aaacj3icbzdlsgmxfibpelfeqi7dbivgqs7uaetctirgcgrrc20tmtsjwcyfjcouyr7hja/irkrfl76bj2a6u0wrbwjf/v8ctvk7ewdsmeabmty+mtk1ptnbmjtfwfwqlq+cyzawhnzjyeprdlgknaw0rpjitbkjin2x04z7fttwgzdusbygz6of0y6plwpmmykvlrrf/wo0h5xudw2hmqa2jzbjndsx2xfd4qksjorp8gqlycdufktm2cwk/qvrckx9d8jk6ryf272qxd4nfofyypzlrqqtykey4tqttgnji0yu8svtaqywt2unyt6aog2t9jaxcn0chtl150scfsn7vqs7fayu5kg3ep/zwrhyqp2ebvgsaedyrv7mkqrridxuy4isxfsambfmvxwrk6xzudrbqhacxalu7w2uw7b1bdxveoqv8m7zplvlb4d5gdada7aom2dbdhzacthqbwk3ca9p8gzcgq/gi/gat44zw5lv+fxg+yfzkkvh</latexit> Irradiance from isotropic point source A sphere surrounding the source receives all the power A small, flat surface of area A facing the source receives a fraction (area of surface) / (area of sphere) of that power: P A = P A 4 r 2 Irradiance is power per unit area: E = P A /A = P 4 r 2 = P 4 1 r 2 intensity geometry factor 2018 Steve Marschner 7

9 Lambert s cosine law l n Top face of cube receives a certain amount of light Top face of 60º rotated cube intercepts half the light In general, light per unit area is proportional to cos θ = l n 2018 Steve Marschner 8

10 <latexit sha1_base64="wvda6mp+9m2djbttbfqdl1oz6u0=">aaacdxicbzdlsgmxfibpek31vnxpjlgev2v6aetctlpxwcfaovnljs20wcyf5ixqhj6bg1/fjqsvt+7d+ry+gum0ircfah//fw5jfjesqqntv1lt0zozc/ozhezi0vlkam5t/vyhswk8wuizqguxai5fwbsoupklshhqu5i33avjud685kqlmdjdqctbpu0fwhomore6ue16p0b2sz04nqisqrghhdrbpkc6tcpojii6la07ubxdsforv1ccqp7ghvlvo7lxpxuy2ocbmkm1bhxtcnsjvsiy5mose2seuxzfe7xlmka+1+0k/c6qbbuns7xqmrmgsd3vgwn1tr74rpn0kfb172xk/pe1yvsq7uqeuyw8yoolvfgsdmmog9ivijouawoukwheslifml7qnjhns6iustvkmyyhxpye6lcjjvjhr2cfvvkhr+myiaobsau7uirdoiqtqemdgnzahtzao3vr3vtp1vn4dmqa7gzad1kvhyltncy=</latexit> <latexit sha1_base64="wvda6mp+9m2djbttbfqdl1oz6u0=">aaacdxicbzdlsgmxfibpek31vnxpjlgev2v6aetctlpxwcfaovnljs20wcyf5ixqhj6bg1/fjqsvt+7d+ry+gum0ircfah//fw5jfjesqqntv1lt0zozc/ozhezi0vlkam5t/vyhswk8wuizqguxai5fwbsoupklshhqu5i33avjud685kqlmdjdqctbpu0fwhomore6ue16p0b2sz04nqisqrghhdrbpkc6tcpojii6la07ubxdsforv1ccqp7ghvlvo7lxpxuy2ocbmkm1bhxtcnsjvsiy5mose2seuxzfe7xlmka+1+0k/c6qbbuns7xqmrmgsd3vgwn1tr74rpn0kfb172xk/pe1yvsq7uqeuyw8yoolvfgsdmmog9ivijouawoukwheslifml7qnjhns6iustvkmyyhxpye6lcjjvjhr2cfvvkhr+myiaobsau7uirdoiqtqemdgnzahtzao3vr3vtp1vn4dmqa7gzad1kvhyltncy=</latexit> <latexit sha1_base64="wvda6mp+9m2djbttbfqdl1oz6u0=">aaacdxicbzdlsgmxfibpek31vnxpjlgev2v6aetctlpxwcfaovnljs20wcyf5ixqhj6bg1/fjqsvt+7d+ry+gum0ircfah//fw5jfjesqqntv1lt0zozc/ozhezi0vlkam5t/vyhswk8wuizqguxai5fwbsoupklshhqu5i33avjud685kqlmdjdqctbpu0fwhomore6ue16p0b2sz04nqisqrghhdrbpkc6tcpojii6la07ubxdsforv1ccqp7ghvlvo7lxpxuy2ocbmkm1bhxtcnsjvsiy5mose2seuxzfe7xlmka+1+0k/c6qbbuns7xqmrmgsd3vgwn1tr74rpn0kfb172xk/pe1yvsq7uqeuyw8yoolvfgsdmmog9ivijouawoukwheslifml7qnjhns6iustvkmyyhxpye6lcjjvjhr2cfvvkhr+myiaobsau7uirdoiqtqemdgnzahtzao3vr3vtp1vn4dmqa7gzad1kvhyltncy=</latexit> <latexit sha1_base64="wvda6mp+9m2djbttbfqdl1oz6u0=">aaacdxicbzdlsgmxfibpek31vnxpjlgev2v6aetctlpxwcfaovnljs20wcyf5ixqhj6bg1/fjqsvt+7d+ry+gum0ircfah//fw5jfjesqqntv1lt0zozc/ozhezi0vlkam5t/vyhswk8wuizqguxai5fwbsoupklshhqu5i33avjud685kqlmdjdqctbpu0fwhomore6ue16p0b2sz04nqisqrghhdrbpkc6tcpojii6la07ubxdsforv1ccqp7ghvlvo7lxpxuy2ocbmkm1bhxtcnsjvsiy5mose2seuxzfe7xlmka+1+0k/c6qbbuns7xqmrmgsd3vgwn1tr74rpn0kfb172xk/pe1yvsq7uqeuyw8yoolvfgsdmmog9ivijouawoukwheslifml7qnjhns6iustvkmyyhxpye6lcjjvjhr2cfvvkhr+myiaobsau7uirdoiqtqemdgnzahtzao3vr3vtp1vn4dmqa7gzad1kvhyltncy=</latexit> <latexit sha1_base64="wvda6mp+9m2djbttbfqdl1oz6u0=">aaacdxicbzdlsgmxfibpek31vnxpjlgev2v6aetctlpxwcfaovnljs20wcyf5ixqhj6bg1/fjqsvt+7d+ry+gum0ircfah//fw5jfjesqqntv1lt0zozc/ozhezi0vlkam5t/vyhswk8wuizqguxai5fwbsoupklshhqu5i33avjud685kqlmdjdqctbpu0fwhomore6ue16p0b2sz04nqisqrghhdrbpkc6tcpojii6la07ubxdsforv1ccqp7ghvlvo7lxpxuy2ocbmkm1bhxtcnsjvsiy5mose2seuxzfe7xlmka+1+0k/c6qbbuns7xqmrmgsd3vgwn1tr74rpn0kfb172xk/pe1yvsq7uqeuyw8yoolvfgsdmmog9ivijouawoukwheslifml7qnjhns6iustvkmyyhxpye6lcjjvjhr2cfvvkhr+myiaobsau7uirdoiqtqemdgnzahtzao3vr3vtp1vn4dmqa7gzad1kvhyltncy=</latexit> <latexit sha1_base64="yp2i7romeayvwxlitfnycmf2xiy=">aaacg3icbzdlsgmxfibpelfeqi7dbivgqk4vyf2inwsxfawknvoyacygmxesm0iz5khc+cpuxki4elz4fj6c6bsktx8cx/5zdif53ugkjbb9zo2mjo1pte5n52zm5+yx8otlpzqmfemnfspqnbtucykc3kcbkp9hilpflfzmvtro18+uudiide6wf/gwty8d4qlg0vjtfowqbjn6e49skd1djqcos+ppunuikq6vdgu1g12one3urtlt5wt20c5e/kjpciwdd8hub+dfne7iyp8hyctvulmyi2wlvkfgkqc5j9y8ouykxvkmwyd6xles7hmpwtnoh3ihmidakrnfjxlqa93zxdppu+zq37w++v+tganxayuiiglkarss8mjjmct9pehhkm5q9gxqpor5k2fdagjbk2cuc6falteqftkasuktal8hnmrfraj9xc3s7g/cgclygvvyhxjswi4cqr0awoag7uabhq1b6956sp4hrspwcgyzfsh6/qa146gl</latexit> <latexit sha1_base64="yp2i7romeayvwxlitfnycmf2xiy=">aaacg3icbzdlsgmxfibpelfeqi7dbivgqk4vyf2inwsxfawknvoyacygmxesm0iz5khc+cpuxki4elz4fj6c6bsktx8cx/5zdif53ugkjbb9zo2mjo1pte5n52zm5+yx8otlpzqmfemnfspqnbtucykc3kcbkp9hilpflfzmvtro18+uudiide6wf/gwty8d4qlg0vjtfowqbjn6e49skd1djqcos+ppunuikq6vdgu1g12one3urtlt5wt20c5e/kjpciwdd8hub+dfne7iyp8hyctvulmyi2wlvkfgkqc5j9y8ouykxvkmwyd6xles7hmpwtnoh3ihmidakrnfjxlqa93zxdppu+zq37w++v+tganxayuiiglkarss8mjjmct9pehhkm5q9gxqpor5k2fdagjbk2cuc6falteqftkasuktal8hnmrfraj9xc3s7g/cgclygvvyhxjswi4cqr0awoag7uabhq1b6956sp4hrspwcgyzfsh6/qa146gl</latexit> <latexit sha1_base64="yp2i7romeayvwxlitfnycmf2xiy=">aaacg3icbzdlsgmxfibpelfeqi7dbivgqk4vyf2inwsxfawknvoyacygmxesm0iz5khc+cpuxki4elz4fj6c6bsktx8cx/5zdif53ugkjbb9zo2mjo1pte5n52zm5+yx8otlpzqmfemnfspqnbtucykc3kcbkp9hilpflfzmvtro18+uudiide6wf/gwty8d4qlg0vjtfowqbjn6e49skd1djqcos+ppunuikq6vdgu1g12one3urtlt5wt20c5e/kjpciwdd8hub+dfne7iyp8hyctvulmyi2wlvkfgkqc5j9y8ouykxvkmwyd6xles7hmpwtnoh3ihmidakrnfjxlqa93zxdppu+zq37w++v+tganxayuiiglkarss8mjjmct9pehhkm5q9gxqpor5k2fdagjbk2cuc6falteqftkasuktal8hnmrfraj9xc3s7g/cgclygvvyhxjswi4cqr0awoag7uabhq1b6956sp4hrspwcgyzfsh6/qa146gl</latexit> <latexit sha1_base64="yp2i7romeayvwxlitfnycmf2xiy=">aaacg3icbzdlsgmxfibpelfeqi7dbivgqk4vyf2inwsxfawknvoyacygmxesm0iz5khc+cpuxki4elz4fj6c6bsktx8cx/5zdif53ugkjbb9zo2mjo1pte5n52zm5+yx8otlpzqmfemnfspqnbtucykc3kcbkp9hilpflfzmvtro18+uudiide6wf/gwty8d4qlg0vjtfowqbjn6e49skd1djqcos+ppunuikq6vdgu1g12one3urtlt5wt20c5e/kjpciwdd8hub+dfne7iyp8hyctvulmyi2wlvkfgkqc5j9y8ouykxvkmwyd6xles7hmpwtnoh3ihmidakrnfjxlqa93zxdppu+zq37w++v+tganxayuiiglkarss8mjjmct9pehhkm5q9gxqpor5k2fdagjbk2cuc6falteqftkasuktal8hnmrfraj9xc3s7g/cgclygvvyhxjswi4cqr0awoag7uabhq1b6956sp4hrspwcgyzfsh6/qa146gl</latexit> <latexit sha1_base64="yp2i7romeayvwxlitfnycmf2xiy=">aaacg3icbzdlsgmxfibpelfeqi7dbivgqk4vyf2inwsxfawknvoyacygmxesm0iz5khc+cpuxki4elz4fj6c6bsktx8cx/5zdif53ugkjbb9zo2mjo1pte5n52zm5+yx8otlpzqmfemnfspqnbtucykc3kcbkp9hilpflfzmvtro18+uudiide6wf/gwty8d4qlg0vjtfowqbjn6e49skd1djqcos+ppunuikq6vdgu1g12one3urtlt5wt20c5e/kjpciwdd8hub+dfne7iyp8hyctvulmyi2wlvkfgkqc5j9y8ouykxvkmwyd6xles7hmpwtnoh3ihmidakrnfjxlqa93zxdppu+zq37w++v+tganxayuiiglkarss8mjjmct9pehhkm5q9gxqpor5k2fdagjbk2cuc6falteqftkasuktal8hnmrfraj9xc3s7g/cgclygvvyhxjswi4cqr0awoag7uabhq1b6956sp4hrspwcgyzfsh6/qa146gl</latexit> Irradiance from isotropic point source A surface of area A facing at an angle to the source receives a factor of cos θ less light: P A = P A cos 4 r 2 Irradiance is power per unit area: E = P A /A = P 4 cos r 2 intensity geometry factor 2018 Steve Marschner 9

11 <latexit sha1_base64="1pnc0y2otrxxxqtwixbvcpctuqe=">aaacrnicbvbnb9naeb2hasv8pxdksijcqkjetlqj9fc1aih10emryvqpjql1epyusl6b3xfvy8q/6k/hchd+ar+cxqpe2tgfuwckxb19b2zn5iwlkpbc8lvxubvy+87d1xv+/qcphz3urj35aivkcixeoqpzlhclsmqmsjlco9igzxofh8ns3ui/pevjzae/uf3ioodtltmpodlq0u3hcu6lbvct5sbw+txc35ukbivn3p3ezzhq9a9x0u2f/ban9i8yxipe9gw0st9z87w4lusvoyahulxhg7ckccmnsafw7sevxzklgz9i064zzy8clbksmo5oyi17i4/n1tz54jjztif2b21b/k87rigbjrupy4pqi2wjrfkmcrbwhqxsocbvmy6em7fi5oyqj9xwqc5dp25lmycy7hvykwd7mjhc1ahhwz4fugtvpri4zkaevt51n7l9/na0jefwtlholmb98aumfpswdfub/fbg2nt5uzqpvuezpiexmia3sao7sa8rcdihz/afvnrfvb/epxe1to141zvp4uz04cfsz7en</latexit> <latexit sha1_base64="1pnc0y2otrxxxqtwixbvcpctuqe=">aaacrnicbvbnb9naeb2hasv8pxdksijcqkjetlqj9fc1aih10emryvqpjql1epyusl6b3xfvy8q/6k/hchd+ar+cxqpe2tgfuwckxb19b2zn5iwlkpbc8lvxubvy+87d1xv+/qcphz3urj35aivkcixeoqpzlhclsmqmsjlco9igzxofh8ns3ui/pevjzae/uf3ioodtltmpodlq0u3hcu6lbvct5sbw+txc35ukbivn3p3ezzhq9a9x0u2f/ban9i8yxipe9gw0st9z87w4lusvoyahulxhg7ckccmnsafw7sevxzklgz9i064zzy8clbksmo5oyi17i4/n1tz54jjztif2b21b/k87rigbjrupy4pqi2wjrfkmcrbwhqxsocbvmy6em7fi5oyqj9xwqc5dp25lmycy7hvykwd7mjhc1ahhwz4fugtvpri4zkaevt51n7l9/na0jefwtlholmb98aumfpswdfub/fbg2nt5uzqpvuezpiexmia3sao7sa8rcdihz/afvnrfvb/epxe1to141zvp4uz04cfsz7en</latexit> <latexit sha1_base64="1pnc0y2otrxxxqtwixbvcpctuqe=">aaacrnicbvbnb9naeb2hasv8pxdksijcqkjetlqj9fc1aih10emryvqpjql1epyusl6b3xfvy8q/6k/hchd+ar+cxqpe2tgfuwckxb19b2zn5iwlkpbc8lvxubvy+87d1xv+/qcphz3urj35aivkcixeoqpzlhclsmqmsjlco9igzxofh8ns3ui/pevjzae/uf3ioodtltmpodlq0u3hcu6lbvct5sbw+txc35ukbivn3p3ezzhq9a9x0u2f/ban9i8yxipe9gw0st9z87w4lusvoyahulxhg7ckccmnsafw7sevxzklgz9i064zzy8clbksmo5oyi17i4/n1tz54jjztif2b21b/k87rigbjrupy4pqi2wjrfkmcrbwhqxsocbvmy6em7fi5oyqj9xwqc5dp25lmycy7hvykwd7mjhc1ahhwz4fugtvpri4zkaevt51n7l9/na0jefwtlholmb98aumfpswdfub/fbg2nt5uzqpvuezpiexmia3sao7sa8rcdihz/afvnrfvb/epxe1to141zvp4uz04cfsz7en</latexit> <latexit sha1_base64="1pnc0y2otrxxxqtwixbvcpctuqe=">aaacrnicbvbnb9naeb2hasv8pxdksijcqkjetlqj9fc1aih10emryvqpjql1epyusl6b3xfvy8q/6k/hchd+ar+cxqpe2tgfuwckxb19b2zn5iwlkpbc8lvxubvy+87d1xv+/qcphz3urj35aivkcixeoqpzlhclsmqmsjlco9igzxofh8ns3ui/pevjzae/uf3ioodtltmpodlq0u3hcu6lbvct5sbw+txc35ukbivn3p3ezzhq9a9x0u2f/ban9i8yxipe9gw0st9z87w4lusvoyahulxhg7ckccmnsafw7sevxzklgz9i064zzy8clbksmo5oyi17i4/n1tz54jjztif2b21b/k87rigbjrupy4pqi2wjrfkmcrbwhqxsocbvmy6em7fi5oyqj9xwqc5dp25lmycy7hvykwd7mjhc1ahhwz4fugtvpri4zkaevt51n7l9/na0jefwtlholmb98aumfpswdfub/fbg2nt5uzqpvuezpiexmia3sao7sa8rcdihz/afvnrfvb/epxe1to141zvp4uz04cfsz7en</latexit> <latexit sha1_base64="1pnc0y2otrxxxqtwixbvcpctuqe=">aaacrnicbvbnb9naeb2hasv8pxdksijcqkjetlqj9fc1aih10emryvqpjql1epyusl6b3xfvy8q/6k/hchd+ar+cxqpe2tgfuwckxb19b2zn5iwlkpbc8lvxubvy+87d1xv+/qcphz3urj35aivkcixeoqpzlhclsmqmsjlco9igzxofh8ns3ui/pevjzae/uf3ioodtltmpodlq0u3hcu6lbvct5sbw+txc35ukbivn3p3ezzhq9a9x0u2f/ban9i8yxipe9gw0st9z87w4lusvoyahulxhg7ckccmnsafw7sevxzklgz9i064zzy8clbksmo5oyi17i4/n1tz54jjztif2b21b/k87rigbjrupy4pqi2wjrfkmcrbwhqxsocbvmy6em7fi5oyqj9xwqc5dp25lmycy7hvykwd7mjhc1ahhwz4fugtvpri4zkaevt51n7l9/na0jefwtlholmb98aumfpswdfub/fbg2nt5uzqpvuezpiexmia3sao7sa8rcdihz/afvnrfvb/epxe1to141zvp4uz04cfsz7en</latexit> <latexit sha1_base64="v+7i6oqoqxbnjpakapa33awxr/w=">aaacunicbvlpa9rafh5zf9vy7vapxgyxqqq32w3brsawrfdqqxvjc80sjpox7ddjjj15kq0h/4t/jve9epc/8o7f2wwvqz4y+oz735v33seklzkwwvcbn7hy9dr1g2s3/vvrt+9sddfvfrblbqrgolslouy5rsu1rirj4wflkbepwop05nuyf3cgxspsv6emwnnbf1rmunbyvdj8fqe4klrfu82n4c3jzt9lmvacxbnhon2xzf0bv7jjr30wo87+ecbdutgo+2d/gskfgl34dn3sj5uef2elqavujbs39mgsvjrvusepfhz+xfusudjhc2z71tr20fezy0vjjibws5d0vlc2kvknldgd279zs/j/uaoa8tm8lbqqcbvyncprxahks59yjg0kug3jqrh5a05udnhmnsvk/ptjvrqniutugtvfscdtw00tej4xesc1uhwggets5pmtm/ey28fvtduetmfbw2wftia/woy3adf0vdmo305huy9x5sea3ich8agm8br24q3sqwqcpsin+axfvk/ej4h7jsvpwluouqexyrd+e8amtku=</latexit> <latexit sha1_base64="v+7i6oqoqxbnjpakapa33awxr/w=">aaacunicbvlpa9rafh5zf9vy7vapxgyxqqq32w3brsawrfdqqxvjc80sjpox7ddjjj15kq0h/4t/jve9epc/8o7f2wwvqz4y+oz735v33seklzkwwvcbn7hy9dr1g2s3/vvrt+9sddfvfrblbqrgolslouy5rsu1rirj4wflkbepwop05nuyf3cgxspsv6emwnnbf1rmunbyvdj8fqe4klrfu82n4c3jzt9lmvacxbnhon2xzf0bv7jjr30wo87+ecbdutgo+2d/gskfgl34dn3sj5uef2elqavujbs39mgsvjrvusepfhz+xfusudjhc2z71tr20fezy0vjjibws5d0vlc2kvknldgd279zs/j/uaoa8tm8lbqqcbvyncprxahks59yjg0kug3jqrh5a05udnhmnsvk/ptjvrqniutugtvfscdtw00tej4xesc1uhwggets5pmtm/ey28fvtduetmfbw2wftia/woy3adf0vdmo305huy9x5sea3ich8agm8br24q3sqwqcpsin+axfvk/ej4h7jsvpwluouqexyrd+e8amtku=</latexit> <latexit sha1_base64="v+7i6oqoqxbnjpakapa33awxr/w=">aaacunicbvlpa9rafh5zf9vy7vapxgyxqqq32w3brsawrfdqqxvjc80sjpox7ddjjj15kq0h/4t/jve9epc/8o7f2wwvqz4y+oz735v33seklzkwwvcbn7hy9dr1g2s3/vvrt+9sddfvfrblbqrgolslouy5rsu1rirj4wflkbepwop05nuyf3cgxspsv6emwnnbf1rmunbyvdj8fqe4klrfu82n4c3jzt9lmvacxbnhon2xzf0bv7jjr30wo87+ecbdutgo+2d/gskfgl34dn3sj5uef2elqavujbs39mgsvjrvusepfhz+xfusudjhc2z71tr20fezy0vjjibws5d0vlc2kvknldgd279zs/j/uaoa8tm8lbqqcbvyncprxahks59yjg0kug3jqrh5a05udnhmnsvk/ptjvrqniutugtvfscdtw00tej4xesc1uhwggets5pmtm/ey28fvtduetmfbw2wftia/woy3adf0vdmo305huy9x5sea3ich8agm8br24q3sqwqcpsin+axfvk/ej4h7jsvpwluouqexyrd+e8amtku=</latexit> <latexit sha1_base64="v+7i6oqoqxbnjpakapa33awxr/w=">aaacunicbvlpa9rafh5zf9vy7vapxgyxqqq32w3brsawrfdqqxvjc80sjpox7ddjjj15kq0h/4t/jve9epc/8o7f2wwvqz4y+oz735v33seklzkwwvcbn7hy9dr1g2s3/vvrt+9sddfvfrblbqrgolslouy5rsu1rirj4wflkbepwop05nuyf3cgxspsv6emwnnbf1rmunbyvdj8fqe4klrfu82n4c3jzt9lmvacxbnhon2xzf0bv7jjr30wo87+ecbdutgo+2d/gskfgl34dn3sj5uef2elqavujbs39mgsvjrvusepfhz+xfusudjhc2z71tr20fezy0vjjibws5d0vlc2kvknldgd279zs/j/uaoa8tm8lbqqcbvyncprxahks59yjg0kug3jqrh5a05udnhmnsvk/ptjvrqniutugtvfscdtw00tej4xesc1uhwggets5pmtm/ey28fvtduetmfbw2wftia/woy3adf0vdmo305huy9x5sea3ich8agm8br24q3sqwqcpsin+axfvk/ej4h7jsvpwluouqexyrd+e8amtku=</latexit> <latexit sha1_base64="v+7i6oqoqxbnjpakapa33awxr/w=">aaacunicbvlpa9rafh5zf9vy7vapxgyxqqq32w3brsawrfdqqxvjc80sjpox7ddjjj15kq0h/4t/jve9epc/8o7f2wwvqz4y+oz735v33seklzkwwvcbn7hy9dr1g2s3/vvrt+9sddfvfrblbqrgolslouy5rsu1rirj4wflkbepwop05nuyf3cgxspsv6emwnnbf1rmunbyvdj8fqe4klrfu82n4c3jzt9lmvacxbnhon2xzf0bv7jjr30wo87+ecbdutgo+2d/gskfgl34dn3sj5uef2elqavujbs39mgsvjrvusepfhz+xfusudjhc2z71tr20fezy0vjjibws5d0vlc2kvknldgd279zs/j/uaoa8tm8lbqqcbvyncprxahks59yjg0kug3jqrh5a05udnhmnsvk/ptjvrqniutugtvfscdtw00tej4xesc1uhwggets5pmtm/ey28fvtduetmfbw2wftia/woy3adf0vdmo305huy9x5sea3ich8agm8br24q3sqwqcpsin+axfvk/ej4h7jsvpwluouqexyrd+e8amtku=</latexit> Diffuse reflection Simplest reflection model Reflected light is independent of view direction Reflected light is proportional to irradiance constant of proportionality is the diffuse reflection coefficient L d = k d E More useful to think in terms of reflectance reflectance is the fraction reflected (between 0 and 1) L d = R d E will have to explain the factor of pi later 2018 Steve Marschner 10

12 <latexit sha1_base64="kefe40amgwkpa/1p/f6ediyu2b0=">aaacdhicbvdlbtqwfhxcq4rhp2wjkcxglqoqk0xaqcmcucegpc4kirrspywc52zq1xac7ywmivjz/av/wblysmwtfesbk1k699xzhz5pkbixuftz869cvxb9xtrn4nbto3fxbxub701raqyjk0sht1jqqhafievwwempgcpuwhf6/njvp16anrxq72xdwltsuei5z9q6ajygjiu5vw18vfrrwj9ug8nzhp9hkmvkmrdtq0rekp0+jziut6mdtbyke5yv1ihxqg30h9hpxgcevpbhqnlggi2ilvc/yhwbhs+/oi6ozhuer7kcvrkuzyiaczqosjttqlaccwgduhkoktunc2i6z7d4y1ezzgvtnrk4yy/pqdsmlqltsmrpzn+1ffm/2mll88m04aqslcjwl8orgw2bv07ijgtgvtsymuburah1d7az6oyyzvgadk1nmbixhubl8jcnmuo6tlcuecgve1ugodus+fljwg1z/wk60/bielk3i3uwo/4fjr9ns+lr01h0jh4evojnq2vopnqittey7amd9aodoqqx9al9qd/qd++h/8af+lu91pcueu6hs+gpfglz0meo</latexit> <latexit sha1_base64="kefe40amgwkpa/1p/f6ediyu2b0=">aaacdhicbvdlbtqwfhxcq4rhp2wjkcxglqoqk0xaqcmcucegpc4kirrspywc52zq1xac7ywmivjz/av/wblysmwtfesbk1k699xzhz5pkbixuftz869cvxb9xtrn4nbto3fxbxub701raqyjk0sht1jqqhafievwwempgcpuwhf6/njvp16anrxq72xdwltsuei5z9q6ajygjiu5vw18vfrrwj9ug8nzhp9hkmvkmrdtq0rekp0+jziut6mdtbyke5yv1ihxqg30h9hpxgcevpbhqnlggi2ilvc/yhwbhs+/oi6ozhuer7kcvrkuzyiaczqosjttqlaccwgduhkoktunc2i6z7d4y1ezzgvtnrk4yy/pqdsmlqltsmrpzn+1ffm/2mll88m04aqslcjwl8orgw2bv07ijgtgvtsymuburah1d7az6oyyzvgadk1nmbixhubl8jcnmuo6tlcuecgve1ugodus+fljwg1z/wk60/bielk3i3uwo/4fjr9ns+lr01h0jh4evojnq2vopnqittey7amd9aodoqqx9al9qd/qd++h/8af+lu91pcueu6hs+gpfglz0meo</latexit> <latexit sha1_base64="kefe40amgwkpa/1p/f6ediyu2b0=">aaacdhicbvdlbtqwfhxcq4rhp2wjkcxglqoqk0xaqcmcucegpc4kirrspywc52zq1xac7ywmivjz/av/wblysmwtfesbk1k699xzhz5pkbixuftz869cvxb9xtrn4nbto3fxbxub701raqyjk0sht1jqqhafievwwempgcpuwhf6/njvp16anrxq72xdwltsuei5z9q6ajygjiu5vw18vfrrwj9ug8nzhp9hkmvkmrdtq0rekp0+jziut6mdtbyke5yv1ihxqg30h9hpxgcevpbhqnlggi2ilvc/yhwbhs+/oi6ozhuer7kcvrkuzyiaczqosjttqlaccwgduhkoktunc2i6z7d4y1ezzgvtnrk4yy/pqdsmlqltsmrpzn+1ffm/2mll88m04aqslcjwl8orgw2bv07ijgtgvtsymuburah1d7az6oyyzvgadk1nmbixhubl8jcnmuo6tlcuecgve1ugodus+fljwg1z/wk60/bielk3i3uwo/4fjr9ns+lr01h0jh4evojnq2vopnqittey7amd9aodoqqx9al9qd/qd++h/8af+lu91pcueu6hs+gpfglz0meo</latexit> <latexit sha1_base64="kefe40amgwkpa/1p/f6ediyu2b0=">aaacdhicbvdlbtqwfhxcq4rhp2wjkcxglqoqk0xaqcmcucegpc4kirrspywc52zq1xac7ywmivjz/av/wblysmwtfesbk1k699xzhz5pkbixuftz869cvxb9xtrn4nbto3fxbxub701raqyjk0sht1jqqhafievwwempgcpuwhf6/njvp16anrxq72xdwltsuei5z9q6ajygjiu5vw18vfrrwj9ug8nzhp9hkmvkmrdtq0rekp0+jziut6mdtbyke5yv1ihxqg30h9hpxgcevpbhqnlggi2ilvc/yhwbhs+/oi6ozhuer7kcvrkuzyiaczqosjttqlaccwgduhkoktunc2i6z7d4y1ezzgvtnrk4yy/pqdsmlqltsmrpzn+1ffm/2mll88m04aqslcjwl8orgw2bv07ijgtgvtsymuburah1d7az6oyyzvgadk1nmbixhubl8jcnmuo6tlcuecgve1ugodus+fljwg1z/wk60/bielk3i3uwo/4fjr9ns+lr01h0jh4evojnq2vopnqittey7amd9aodoqqx9al9qd/qd++h/8af+lu91pcueu6hs+gpfglz0meo</latexit> <latexit sha1_base64="kefe40amgwkpa/1p/f6ediyu2b0=">aaacdhicbvdlbtqwfhxcq4rhp2wjkcxglqoqk0xaqcmcucegpc4kirrspywc52zq1xac7ywmivjz/av/wblysmwtfesbk1k699xzhz5pkbixuftz869cvxb9xtrn4nbto3fxbxub701raqyjk0sht1jqqhafievwwempgcpuwhf6/njvp16anrxq72xdwltsuei5z9q6ajygjiu5vw18vfrrwj9ug8nzhp9hkmvkmrdtq0rekp0+jziut6mdtbyke5yv1ihxqg30h9hpxgcevpbhqnlggi2ilvc/yhwbhs+/oi6ozhuer7kcvrkuzyiaczqosjttqlaccwgduhkoktunc2i6z7d4y1ezzgvtnrk4yy/pqdsmlqltsmrpzn+1ffm/2mll88m04aqslcjwl8orgw2bv07ijgtgvtsymuburah1d7az6oyyzvgadk1nmbixhubl8jcnmuo6tlcuecgve1ugodus+fljwg1z/wk60/bielk3i3uwo/4fjr9ns+lr01h0jh4evojnq2vopnqittey7amd9aodoqqx9al9qd/qd++h/8af+lu91pcueu6hs+gpfglz0meo</latexit> Lambertian shading Shading independent of view direction diffuse reflectance irradiance from source l n v L d = R max(0, n l) r 2 I diffuse coefficient distance to source intensity of source diffusely reflected radiance 2018 Steve Marschner 11

13 Lambertian shading Produces matte appearance [Foley et al.] k d 2018 Steve Marschner 12

14 Diffuse shading 2018 Steve Marschner 13

15 Image so far Scene.trace(Ray ray, tmin, tmax) { surface, t = hit(ray, tmin, tmax); if surface is not null { point = ray.evaluate(t); normal = surface.getnormal(point); return surface.shade(ray, point, normal, light); } else return backgroundcolor; } Surface.shade(ray, point, normal, light) { v = normalize(ray.direction); l = normalize(light.pos point); // compute shading } 2018 Steve Marschner 14

16 Shadows Surface is only illuminated if nothing blocks the light i.e. if the surface can see the light With ray tracing it s easy to check just intersect a ray with the scene! 2018 Steve Marschner 15

17 Image so far Surface.shade(ray, point, normal, light) { shadray = (point, light.pos point); if (shadray not blocked) { v = normalize(ray.direction); l = normalize(light.pos point); // compute shading } return black; } 2018 Steve Marschner 16

18 Shadow rounding errors Don t fall victim to one of the classic blunders: What s going on? hint: at what t does the shadow ray intersect the surface you re shading? 2018 Steve Marschner 17

19 Shadow rounding errors Solution: shadow rays start a tiny distance from the surface Do this by moving the start point, or by limiting the t range 2018 Steve Marschner 18

20 Multiple lights Important to fill in black shadows Just loop over lights, add contributions Ambient shading black shadows are not really right one solution: dim light at camera alternative: add a constant ambient color to the shading 2018 Steve Marschner 19

21 Image so far shade(ray, point, normal, lights) { result = ambient; for light in lights { if (shadow ray not blocked) { result += shading contribution; } } return result; } 2018 Steve Marschner 20

22 Specular shading diffuse specular 2018 Steve Marschner 21

23 Light reflection: full picture when writing a shader, think like a bug standing on the surface bug sees an incident distribution of light arriving at the surface physics question: what is the outgoing distribution of light? incident distribution (function of direction) reflected distribution (function of direction) 2018 Steve Marschner 22

24 BRDF Bidirectional Reflectance Distribution Function 2018 Steve Marschner 23

25 Reciprocity Interchanging arguments Physical requirement 2018 Steve Marschner 24

26 Specular reflection Intensity depends on view direction bright near mirror configuration l n v Caution: in notes and assignment, v is called ωr and l is called ωi. No meaningful difference, just notational Steve Marschner 25

27 Smooth surfaces metal dielectric 2018 Steve Marschner 26

28 Ideal specular reflection Smooth surfaces of pure materials have ideal specular reflection Metals (conductors) and dielectrics (insulators) behave differently Reflectance (fraction of light reflected) depends on angle metal dielectric 2018 Steve Marschner 27

29 Refraction at boundary of media 2018 Steve Marschner 28

30 Specular reflection from metal Reflectance does depend on angle but not much safely ignored in basic rendering Aluminum 2018 Steve Marschner 29

31 Specular reflection from glass/water Dependence on angle is dramatic! about 4% at normal incidence always 100% at grazing remaining light is transmitted This is important for proper appearance Glass 2018 Steve Marschner 30

32 Fresnel s formulas They predict how much light reflects from a smooth interface between two materials usually one material is empty space where R is the fraction that is reflected (1 R) is the fraction that is transmitted note: the formula in the notes and assignment is different but equivalent Steve Marschner 31

33 2018 Steve Marschner 32

34 Fresnel reflection [Mike Hill & Gaain Kwan Stanford cs348 competition 2001] 2018 Steve Marschner 33

35 Microfacet BRDF Model The microfacet idea surface modeled as random collection of planar facets an incoming ray hits exactly one facet, at random Key input: probability distribution of facet angle [Stephen Westin] 2018 Steve Marschner 34

36 Facet Reflection H vector used to define facets that contribute L and V determine H; only facets with that normal matter reflected light is proportional to number of facets 2018 Steve Marschner 35

37 Microfacet BRDF Model f r (n, l, v) = F (l, h)d(h)g(l, v, h) 4 n l n v 2018 Steve Marschner 36

38 Microfacet BRDF Model Facet distribution f r (n, l, v) = F (l, h)d(h)g(l, v, h) 4 n l n v [Stephen Westin] 2018 Steve Marschner 37

39 Facet Distribution D function describes distribution of h Many choices, depending on surface characteristics A classic choice is due to Beckmann derivation based on Gaussian random processes D(h) = tan 2 (h,n) e m 2 m 2 cos 4 (h, n) 2018 Steve Marschner 38

40 Cook-Torrance BRDF Model Fresnel Reflectance f r (n, l, v) = F (l, h)d(h)g(l, v, h) 4 n l n v Fresnel reflectance for smooth facet more light reflected at grazing angles 2018 Steve Marschner 39

41 Cook-Torrance BRDF Model Masking/shadowing f r (n, l, v) = F (l, h)d(h)g(l, v, h) 4 n l n v 2018 Steve Marschner 40

42 <latexit sha1_base64="bbyn6thxut64aynit6opoi8b8js=">aaadrnicbvllbtnafb27peqapmdjzkrelarfjzyaoicoxkiswbsj0eqznbqpx8mo43gygydgltd8dvv4bj6br4anysvytkt4xmnwuefco9f3eiizz0p73lflxrt2/cbn9vu123fubmxubd97q5juejogcu/kayav5uzqgwaa09ozpdgood0jzl8u+smcssus8uyvznqu44lgesnyg2q8bcedenrasuwnemz24rjjg+btxfgmho3933lbrrcyjbcctz2qbj4vgyj6pto8ejmys2wvr5xguoeiiulmihaje10myfczkspjjlo9w4mmueantgte7kbyiinbw06n1cgov4f6tcfv+fismwf+mm92dy6ltrdbsptmp6tphc5ylcoi4vpoowcqofji/0pn9jtk90zr5swqwuxs8vbdc7wy4l/ax4l68++gjgpj6qyke5lgvgjcsvjd35vp/yjtd2kuyakz4wymshwdyxkoj3roomaxvaos/km5fgsyeeajni/qsgrxozick7wia1mzyz1vf2sf+t9tmoqon8qymkwacliniliodqkl6wfdjinrfgeajpkzb4vkio3x2lyigiobm3egtoyqgbuvwccxxljgxdhymsa8dalr5kp28xhujjlbla62m81euwur0pivqe/kwuhteej4r9v1w0bljfghd8bd0aa+6ijd8bicgweg1gfro/xj+mx/sb/zp+yfvaltlxvugz9idfwc43ua7g==</latexit> <latexit sha1_base64="bbyn6thxut64aynit6opoi8b8js=">aaadrnicbvllbtnafb27peqapmdjzkrelarfjzyaoicoxkiswbsj0eqznbqpx8mo43gygydgltd8dvv4bj6br4anysvytkt4xmnwuefco9f3eiizz0p73lflxrt2/cbn9vu123fubmxubd97q5juejogcu/kayav5uzqgwaa09ozpdgood0jzl8u+smcssus8uyvznqu44lgesnyg2q8bcedenrasuwnemz24rjjg+btxfgmho3933lbrrcyjbcctz2qbj4vgyj6pto8ejmys2wvr5xguoeiiulmihaje10myfczkspjjlo9w4mmueantgte7kbyiinbw06n1cgov4f6tcfv+fismwf+mm92dy6ltrdbsptmp6tphc5ylcoi4vpoowcqofji/0pn9jtk90zr5swqwuxs8vbdc7wy4l/ax4l68++gjgpj6qyke5lgvgjcsvjd35vp/yjtd2kuyakz4wymshwdyxkoj3roomaxvaos/km5fgsyeeajni/qsgrxozick7wia1mzyz1vf2sf+t9tmoqon8qymkwacliniliodqkl6wfdjinrfgeajpkzb4vkio3x2lyigiobm3egtoyqgbuvwccxxljgxdhymsa8dalr5kp28xhujjlbla62m81euwur0pivqe/kwuhteej4r9v1w0bljfghd8bd0aa+6ijd8bicgweg1gfro/xj+mx/sb/zp+yfvaltlxvugz9idfwc43ua7g==</latexit> <latexit sha1_base64="bbyn6thxut64aynit6opoi8b8js=">aaadrnicbvllbtnafb27peqapmdjzkrelarfjzyaoicoxkiswbsj0eqznbqpx8mo43gygydgltd8dvv4bj6br4anysvytkt4xmnwuefco9f3eiizz0p73lflxrt2/cbn9vu123fubmxubd97q5juejogcu/kayav5uzqgwaa09ozpdgood0jzl8u+smcssus8uyvznqu44lgesnyg2q8bcedenrasuwnemz24rjjg+btxfgmho3933lbrrcyjbcctz2qbj4vgyj6pto8ejmys2wvr5xguoeiiulmihaje10myfczkspjjlo9w4mmueantgte7kbyiinbw06n1cgov4f6tcfv+fismwf+mm92dy6ltrdbsptmp6tphc5ylcoi4vpoowcqofji/0pn9jtk90zr5swqwuxs8vbdc7wy4l/ax4l68++gjgpj6qyke5lgvgjcsvjd35vp/yjtd2kuyakz4wymshwdyxkoj3roomaxvaos/km5fgsyeeajni/qsgrxozick7wia1mzyz1vf2sf+t9tmoqon8qymkwacliniliodqkl6wfdjinrfgeajpkzb4vkio3x2lyigiobm3egtoyqgbuvwccxxljgxdhymsa8dalr5kp28xhujjlbla62m81euwur0pivqe/kwuhteej4r9v1w0bljfghd8bd0aa+6ijd8bicgweg1gfro/xj+mx/sb/zp+yfvaltlxvugz9idfwc43ua7g==</latexit> <latexit sha1_base64="bbyn6thxut64aynit6opoi8b8js=">aaadrnicbvllbtnafb27peqapmdjzkrelarfjzyaoicoxkiswbsj0eqznbqpx8mo43gygydgltd8dvv4bj6br4anysvytkt4xmnwuefco9f3eiizz0p73lflxrt2/cbn9vu123fubmxubd97q5juejogcu/kayav5uzqgwaa09ozpdgood0jzl8u+smcssus8uyvznqu44lgesnyg2q8bcedenrasuwnemz24rjjg+btxfgmho3933lbrrcyjbcctz2qbj4vgyj6pto8ejmys2wvr5xguoeiiulmihaje10myfczkspjjlo9w4mmueantgte7kbyiinbw06n1cgov4f6tcfv+fismwf+mm92dy6ltrdbsptmp6tphc5ylcoi4vpoowcqofji/0pn9jtk90zr5swqwuxs8vbdc7wy4l/ax4l68++gjgpj6qyke5lgvgjcsvjd35vp/yjtd2kuyakz4wymshwdyxkoj3roomaxvaos/km5fgsyeeajni/qsgrxozick7wia1mzyz1vf2sf+t9tmoqon8qymkwacliniliodqkl6wfdjinrfgeajpkzb4vkio3x2lyigiobm3egtoyqgbuvwccxxljgxdhymsa8dalr5kp28xhujjlbla62m81euwur0pivqe/kwuhteej4r9v1w0bljfghd8bd0aa+6ijd8bicgweg1gfro/xj+mx/sb/zp+yfvaltlxvugz9idfwc43ua7g==</latexit> <latexit sha1_base64="bbyn6thxut64aynit6opoi8b8js=">aaadrnicbvllbtnafb27peqapmdjzkrelarfjzyaoicoxkiswbsj0eqznbqpx8mo43gygydgltd8dvv4bj6br4anysvytkt4xmnwuefco9f3eiizz0p73lflxrt2/cbn9vu123fubmxubd97q5juejogcu/kayav5uzqgwaa09ozpdgood0jzl8u+smcssus8uyvznqu44lgesnyg2q8bcedenrasuwnemz24rjjg+btxfgmho3933lbrrcyjbcctz2qbj4vgyj6pto8ejmys2wvr5xguoeiiulmihaje10myfczkspjjlo9w4mmueantgte7kbyiinbw06n1cgov4f6tcfv+fismwf+mm92dy6ltrdbsptmp6tphc5ylcoi4vpoowcqofji/0pn9jtk90zr5swqwuxs8vbdc7wy4l/ax4l68++gjgpj6qyke5lgvgjcsvjd35vp/yjtd2kuyakz4wymshwdyxkoj3roomaxvaos/km5fgsyeeajni/qsgrxozick7wia1mzyz1vf2sf+t9tmoqon8qymkwacliniliodqkl6wfdjinrfgeajpkzb4vkio3x2lyigiobm3egtoyqgbuvwccxxljgxdhymsa8dalr5kp28xhujjlbla62m81euwur0pivqe/kwuhteej4r9v1w0bljfghd8bd0aa+6ijd8bicgweg1gfro/xj+mx/sb/zp+yfvaltlxvugz9idfwc43ua7g==</latexit> Masking and Shadowing Many options; Smith shadowing-masking follows from D long story, it is an integral related to D that often doesn t have a closed form solution generally it is assumed that masking and shadowing are statistically independent for Beckmann, recommend using this rational approximation due to Bruce Walter: G(! i,! r, h) =G 1 (! i, h)g 1 (! r, h) ( v h G 1 (v, h) = a a a a, if a<1.6 2 v n 1 otherwise 2018 Steve Marschner 41

43 Microfacet BRDF Model f r (n, l, v) = F (l, h)d(h)g(l, v, h) 4 n l n v reasons for cosine terms in denominator if one is there they clearly both have to be there (by reciprocity) 2018 Steve Marschner 42

44 <latexit sha1_base64="5oqu2hdzhdf1gnuf1k1kz2ogcj4=">aaaczhicbvbdb9mwfl0nx6owrwpicqlzveidnjq0q0r5qjvgbaq9dimwsu2jhodms2y7wxaivlf/dr+gv3jgf/dkt8bjb+lrsrapz7nx1/ckhedgbshxjnft+o2btzzud+/c3dza7u3ce2fyujmmws5yfzzqg4irdc23as8kjvqmak+ty5enflqhnjxxb+2ywlmk54pnnfhrqlh3ebwb8pxksr5eldonuswardojktsztvkdsboyba2ripbm1qxsrwr9frwir7txrx8mgzbiv2b0bfqh36gnk3insxwlosslkssenwy2cgq7nwn8ooy11zyzgatuvboskluk5zhzufgjzl63867iy8ekjmu1w8qslv29oqbsmkvmxkak9sl8rtxk/7rzabppvoaqkc0qtm6ulylyndtmkzrrzfyshabmc/dxwi6om8k6i7trw1j7oxe332jph/neu730ls5k5npfrjmi7/pqvnhsuafcnk2dk/f4ojkga3aw+gmmvxwmx8nnw+dnph/0yu0kbmadeaqdgmftoijxcaihmpgin+azfol88za9xe/+otxrxnxswh/hpfwbi5i46a==</latexit> <latexit sha1_base64="5oqu2hdzhdf1gnuf1k1kz2ogcj4=">aaaczhicbvbdb9mwfl0nx6owrwpicqlzveidnjq0q0r5qjvgbaq9dimwsu2jhodms2y7wxaivlf/dr+gv3jgf/dkt8bjb+lrsrapz7nx1/ckhedgbshxjnft+o2btzzud+/c3dza7u3ce2fyujmmws5yfzzqg4irdc23as8kjvqmak+ty5enflqhnjxxb+2ywlmk54pnnfhrqlh3ebwb8pxksr5eldonuswardojktsztvkdsboyba2ripbm1qxsrwr9frwir7txrx8mgzbiv2b0bfqh36gnk3insxwlosslkssenwy2cgq7nwn8ooy11zyzgatuvboskluk5zhzufgjzl63867iy8ekjmu1w8qslv29oqbsmkvmxkak9sl8rtxk/7rzabppvoaqkc0qtm6ulylyndtmkzrrzfyshabmc/dxwi6om8k6i7trw1j7oxe332jph/neu730ls5k5npfrjmi7/pqvnhsuafcnk2dk/f4ojkga3aw+gmmvxwmx8nnw+dnph/0yu0kbmadeaqdgmftoijxcaihmpgin+azfol88za9xe/+otxrxnxswh/hpfwbi5i46a==</latexit> <latexit sha1_base64="5oqu2hdzhdf1gnuf1k1kz2ogcj4=">aaaczhicbvbdb9mwfl0nx6owrwpicqlzveidnjq0q0r5qjvgbaq9dimwsu2jhodms2y7wxaivlf/dr+gv3jgf/dkt8bjb+lrsrapz7nx1/ckhedgbshxjnft+o2btzzud+/c3dza7u3ce2fyujmmws5yfzzqg4irdc23as8kjvqmak+ty5enflqhnjxxb+2ywlmk54pnnfhrqlh3ebwb8pxksr5eldonuswardojktsztvkdsboyba2ripbm1qxsrwr9frwir7txrx8mgzbiv2b0bfqh36gnk3insxwlosslkssenwy2cgq7nwn8ooy11zyzgatuvboskluk5zhzufgjzl63867iy8ekjmu1w8qslv29oqbsmkvmxkak9sl8rtxk/7rzabppvoaqkc0qtm6ulylyndtmkzrrzfyshabmc/dxwi6om8k6i7trw1j7oxe332jph/neu730ls5k5npfrjmi7/pqvnhsuafcnk2dk/f4ojkga3aw+gmmvxwmx8nnw+dnph/0yu0kbmadeaqdgmftoijxcaihmpgin+azfol88za9xe/+otxrxnxswh/hpfwbi5i46a==</latexit> <latexit sha1_base64="5oqu2hdzhdf1gnuf1k1kz2ogcj4=">aaaczhicbvbdb9mwfl0nx6owrwpicqlzveidnjq0q0r5qjvgbaq9dimwsu2jhodms2y7wxaivlf/dr+gv3jgf/dkt8bjb+lrsrapz7nx1/ckhedgbshxjnft+o2btzzud+/c3dza7u3ce2fyujmmws5yfzzqg4irdc23as8kjvqmak+ty5enflqhnjxxb+2ywlmk54pnnfhrqlh3ebwb8pxksr5eldonuswardojktsztvkdsboyba2ripbm1qxsrwr9frwir7txrx8mgzbiv2b0bfqh36gnk3insxwlosslkssenwy2cgq7nwn8ooy11zyzgatuvboskluk5zhzufgjzl63867iy8ekjmu1w8qslv29oqbsmkvmxkak9sl8rtxk/7rzabppvoaqkc0qtm6ulylyndtmkzrrzfyshabmc/dxwi6om8k6i7trw1j7oxe332jph/neu730ls5k5npfrjmi7/pqvnhsuafcnk2dk/f4ojkga3aw+gmmvxwmx8nnw+dnph/0yu0kbmadeaqdgmftoijxcaihmpgin+azfol88za9xe/+otxrxnxswh/hpfwbi5i46a==</latexit> <latexit sha1_base64="5oqu2hdzhdf1gnuf1k1kz2ogcj4=">aaaczhicbvbdb9mwfl0nx6owrwpicqlzveidnjq0q0r5qjvgbaq9dimwsu2jhodms2y7wxaivlf/dr+gv3jgf/dkt8bjb+lrsrapz7nx1/ckhedgbshxjnft+o2btzzud+/c3dza7u3ce2fyujmmws5yfzzqg4irdc23as8kjvqmak+ty5enflqhnjxxb+2ywlmk54pnnfhrqlh3ebwb8pxksr5eldonuswardojktsztvkdsboyba2ripbm1qxsrwr9frwir7txrx8mgzbiv2b0bfqh36gnk3insxwlosslkssenwy2cgq7nwn8ooy11zyzgatuvboskluk5zhzufgjzl63867iy8ekjmu1w8qslv29oqbsmkvmxkak9sl8rtxk/7rzabppvoaqkc0qtm6ulylyndtmkzrrzfyshabmc/dxwi6om8k6i7trw1j7oxe332jph/neu730ls5k5npfrjmi7/pqvnhsuafcnk2dk/f4ojkga3aw+gmmvxwmx8nnw+dnph/0yu0kbmadeaqdgmftoijxcaihmpgin+azfol88za9xe/+otxrxnxswh/hpfwbi5i46a==</latexit> Specular shading (Microfacet) Close to mirror half vector near normal reflectance is high when n h is near 1.0 (α is near 0) h = bisector(v, l) l n h v = v + l v + l L s = f r (n, l, v) irradiance from source max(0, n l) r 2 I specularly reflected radiance specular BRDF value 2018 Steve Marschner 43

45 Ray tracer architecture 101 You want a class called Ray point and direction; evaluate(t) possible: tmin, tmax Some things can be intersected with rays individual surfaces groups of surfaces (acceleration goes here) the whole scene make these all subclasses of Surface limit the range of valid t values (e.g. shadow rays) Once you have the visible intersection, compute the color may want to separate shading code from geometry separate class: Material (each Surface holds a reference to one) its job is to compute the color 2018 Steve Marschner 44

46 Architectural practicalities Return values surface intersection tends to want to return multiple values t, surface or shader, normal vector, maybe surface point in many programming languages (e.g. Java) this is a pain typical solution: an intersection record a class with fields for all these things keep track of the intersection record for the closest intersection be careful of accidental aliasing (which is very easy if you re new to Java) Efficiency in Java the (or, a) key to being fast is to minimize creation of objects what objects are created for every ray? try to find a place for them where you can reuse them. Shadow rays can be cheaper (any intersection will do, don t need closest) but: First Get it Right, Then Make it Fast 2018 Steve Marschner 45

Ray Tracing COMP575/COMP770

Ray Tracing COMP575/COMP770 Ray Tracing COMP575/COMP770 1 Ray tracing idea 2 Ray Tracing: Example (from [Whitted80]) Ray Tracing: Example Ray Tracing for Highly Realistic Images Volkswagen Beetle with correct shadows and (multi-)reflections

More information

A Little Background. Motivation. Motivation

A Little Background. Motivation. Motivation A Little Background Ray casting Process of shooting rays into scene to get pixel colors Nonrecursive, i.e., no interreflections Origin: Arthur Appel, 1968 (earlier work by others for nonrendering) Ray

More information

Ray tracing idea. Ray Tracing. Ray tracing algorithm. Plane projection in drawing. CS 465 Lecture 3

Ray tracing idea. Ray Tracing. Ray tracing algorithm. Plane projection in drawing. CS 465 Lecture 3 Ray tracing idea Ray Tracing CS 465 Lecture 3 2007 Doug James 1 2007 Doug James 2 Ray tracing algorithm Plane projection in drawing for each pixel { compute viewing ray intersect ray with scene compute

More information

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media Specular reflection Lighting II CS 465 Lecture 19 Smooth surfaces of pure materials have ideal specular reflection (said this before) Metals (conductors) and dielectrics (insulators) behave differently

More information

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading Visual cues to 3D geometry Light Reflection and Advanced Shading size (perspective) occlusion shading CS 4620 Lecture 17 1 2 Shading Recognizing materials Variation in observed color across an object strongly

More information

CS 5625 Lec 2: Shading Models

CS 5625 Lec 2: Shading Models CS 5625 Lec 2: Shading Models Kavita Bala Spring 2013 Shading Models Chapter 7 Next few weeks Textures Graphics Pipeline Light Emission To compute images What are the light sources? Light Propagation Fog/Clear?

More information

Lecture 4: Reflection Models

Lecture 4: Reflection Models Lecture 4: Reflection Models CS 660, Spring 009 Kavita Bala Computer Science Cornell University Outline Light sources Light source characteristics Types of sources Light reflection Physics-based models

More information

Illumination. Illumination CMSC 435/634

Illumination. Illumination CMSC 435/634 Illumination CMSC 435/634 Illumination Interpolation Illumination Illumination Interpolation Illumination Illumination Effect of light on objects Mostly look just at intensity Apply to each color channel

More information

Lighting and Shading

Lighting and Shading Lighting and Shading Today: Local Illumination Solving the rendering equation is too expensive First do local illumination Then hack in reflections and shadows Local Shading: Notation light intensity in,

More information

Reflection models and radiometry Advanced Graphics

Reflection models and radiometry Advanced Graphics Reflection models and radiometry Advanced Graphics Rafał Mantiuk Computer Laboratory, University of Cambridge Applications To render realistic looking materials Applications also in computer vision, optical

More information

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models Computergrafik Matthias Zwicker Universität Bern Herbst 2009 Today Introduction Local shading models Light sources strategies Compute interaction of light with surfaces Requires simulation of physics Global

More information

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker CMSC427 Shading Intro Credit: slides from Dr. Zwicker 2 Today Shading Introduction Radiometry & BRDFs Local shading models Light sources Shading strategies Shading Compute interaction of light with surfaces

More information

Lighting affects appearance

Lighting affects appearance Lighting affects appearance 1 Source emits photons Light And then some reach the eye/camera. Photons travel in a straight line When they hit an object they: bounce off in a new direction or are absorbed

More information

Viewing and Ray Tracing. CS 4620 Lecture 4

Viewing and Ray Tracing. CS 4620 Lecture 4 Viewing and Ray Tracing CS 4620 Lecture 4 2014 Steve Marschner 1 Projection To render an image of a 3D scene, we project it onto a plane Most common projection type is perspective projection 2014 Steve

More information

Raytracing. COSC 4328/5327 Scott A. King

Raytracing. COSC 4328/5327 Scott A. King Raytracing COSC 4328/5327 Scott A. King Basic Ray Casting Method pixels in screen Shoot ray p from the eye through the pixel. Find closest ray-object intersection. Get color at intersection Basic Ray Casting

More information

Viewing and Ray Tracing

Viewing and Ray Tracing Viewing and Ray Tracing CS 4620 Lecture 4 2018 Steve Marschner 1 Projection To render an image of a 3D scene, we project it onto a plane Most common projection type is perspective projection 2018 Steve

More information

02 Shading and Frames. Steve Marschner CS5625 Spring 2016

02 Shading and Frames. Steve Marschner CS5625 Spring 2016 02 Shading and Frames Steve Marschner CS5625 Spring 2016 Light reflection physics Radiometry redux Power Intensity power per unit solid angle Irradiance power per unit area Radiance power per unit (solid

More information

Simple Lighting/Illumination Models

Simple Lighting/Illumination Models Simple Lighting/Illumination Models Scene rendered using direct lighting only Photograph Scene rendered using a physically-based global illumination model with manual tuning of colors (Frederic Drago and

More information

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading CENG 477 Introduction to Computer Graphics Ray Tracing: Shading Last Week Until now we learned: How to create the primary rays from the given camera and image plane parameters How to intersect these rays

More information

CS6670: Computer Vision

CS6670: Computer Vision CS6670: Computer Vision Noah Snavely Lecture 21: Light, reflectance and photometric stereo Announcements Final projects Midterm reports due November 24 (next Tuesday) by 11:59pm (upload to CMS) State the

More information

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008)

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008) Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2 http://www.cs.columbia.edu/~cs4160 Radiance Power per unit projected area perpendicular to the ray per unit solid angle in

More information

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 Path Tracing part 2 Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 Monte Carlo Integration Monte Carlo Integration The rendering (& radiance) equation is an infinitely recursive integral

More information

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects Basic Ray Tracing Rendering: Reality Eye acts as pinhole camera Photons from light hit objects Rendering: Reality Eye acts as pinhole camera Photons from light hit objects Rendering: Reality Eye acts as

More information

The Rasterization Pipeline

The Rasterization Pipeline Lecture 5: The Rasterization Pipeline Computer Graphics and Imaging UC Berkeley CS184/284A, Spring 2016 What We ve Covered So Far z x y z x y (0, 0) (w, h) Position objects and the camera in the world

More information

Shading. Brian Curless CSE 557 Autumn 2017

Shading. Brian Curless CSE 557 Autumn 2017 Shading Brian Curless CSE 557 Autumn 2017 1 Reading Optional: Angel and Shreiner: chapter 5. Marschner and Shirley: chapter 10, chapter 17. Further reading: OpenGL red book, chapter 5. 2 Basic 3D graphics

More information

CSE 681 Illumination and Phong Shading

CSE 681 Illumination and Phong Shading CSE 681 Illumination and Phong Shading Physics tells us What is Light? We don t see objects, we see light reflected off of objects Light is a particle and a wave The frequency of light What is Color? Our

More information

Lighting affects appearance

Lighting affects appearance Lighting affects appearance 1 Source emits photons Light And then some reach the eye/camera. Photons travel in a straight line When they hit an object they: bounce off in a new direction or are absorbed

More information

BRDF Computer Graphics (Spring 2008)

BRDF Computer Graphics (Spring 2008) BRDF Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2 http://www.cs.columbia.edu/~cs4160 Reflected Radiance proportional to Irradiance Constant proportionality: BRDF [CW

More information

CS5620 Intro to Computer Graphics

CS5620 Intro to Computer Graphics So Far wireframe hidden surfaces Next step 1 2 Light! Need to understand: How lighting works Types of lights Types of surfaces How shading works Shading algorithms What s Missing? Lighting vs. Shading

More information

Illumination and Shading - II

Illumination and Shading - II Illumination and Shading - II Computer Graphics COMP 770 (236) Spring 2007 Instructor: Brandon Lloyd 2/19/07 1 From last time Light Sources Empirical Illumination Shading Local vs Global Illumination 2/19/07

More information

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside CS130 : Computer Graphics Lecture 8: Lighting and Shading Tamar Shinar Computer Science & Engineering UC Riverside Why we need shading Suppose we build a model of a sphere using many polygons and color

More information

Complex Shading Algorithms

Complex Shading Algorithms Complex Shading Algorithms CPSC 414 Overview So far Rendering Pipeline including recent developments Today Shading algorithms based on the Rendering Pipeline Arbitrary reflection models (BRDFs) Bump mapping

More information

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao Computer Science Department University of California, Irvine CS295, Spring 2017 Shuang Zhao 1 Today s Lecture Radiometry Physics of light BRDFs How materials

More information

Turn on the Lights: Reflectance

Turn on the Lights: Reflectance Turn on the Lights: Reflectance Part 2: Shading Tuesday, October 15 2012 Lecture #14 Goal of Shading Model simple light sources Point light sources Extended light sources Ambient lighting Model lighting

More information

Introduction. Lighting model Light reflection model Local illumination model Reflectance model BRDF

Introduction. Lighting model Light reflection model Local illumination model Reflectance model BRDF Shading Introduction Affine transformations help us to place objects into a scene. Before creating images of these objects, we ll look at models for how light interacts with their surfaces. Such a model

More information

Advanced d Computer Graphics CS 563: Real Time Ocean Rendering

Advanced d Computer Graphics CS 563: Real Time Ocean Rendering Advanced d Computer Graphics CS 563: Real Time Ocean Rendering [Real Time Realistic Ocean Lighting using Seamless Transitions from Geometry to BRDF] Xin Wang March, 20, 2012 Computer Science Dept. Worcester

More information

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models Computergrafik Thomas Buchberger, Matthias Zwicker Universität Bern Herbst 2008 Today Introduction Local shading models Light sources strategies Compute interaction of light with surfaces Requires simulation

More information

Radiometry and reflectance

Radiometry and reflectance Radiometry and reflectance http://graphics.cs.cmu.edu/courses/15-463 15-463, 15-663, 15-862 Computational Photography Fall 2018, Lecture 16 Course announcements Homework 4 is still ongoing - Any questions?

More information

Recall: Basic Ray Tracer

Recall: Basic Ray Tracer 1 Recall: Ray Tracing Generate an image by backwards tracing the path of light through pixels on an image plane Simulate the interaction of light with objects Recall: Basic Ray Tracer Trace a primary ray

More information

CPSC 314 LIGHTING AND SHADING

CPSC 314 LIGHTING AND SHADING CPSC 314 LIGHTING AND SHADING UGRAD.CS.UBC.CA/~CS314 slide credits: Mikhail Bessmeltsev et al 1 THE RENDERING PIPELINE Vertices and attributes Vertex Shader Modelview transform Per-vertex attributes Vertex

More information

Illumination in Computer Graphics

Illumination in Computer Graphics Illumination in Computer Graphics Ann McNamara Illumination in Computer Graphics Definition of light sources. Analysis of interaction between light and objects in a scene. Rendering images that are faithful

More information

Raytracing CS148 AS3. Due :59pm PDT

Raytracing CS148 AS3. Due :59pm PDT Raytracing CS148 AS3 Due 2010-07-25 11:59pm PDT We start our exploration of Rendering - the process of converting a high-level object-based description of scene into an image. We will do this by building

More information

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD Shading, lighting, & BRDF Theory Cliff Lindsay, PHD Overview of today s lecture BRDF Characteristics Lights in terms of BRDFs Classes of BRDFs Ambient light & Shadows in terms of BRDFs Decomposing Reflection

More information

Overview. Radiometry and Photometry. Foundations of Computer Graphics (Spring 2012)

Overview. Radiometry and Photometry. Foundations of Computer Graphics (Spring 2012) Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry http://inst.eecs.berkeley.edu/~cs184 Overview Lighting and shading key in computer graphics HW 2 etc. ad-hoc shading models,

More information

CS6670: Computer Vision

CS6670: Computer Vision CS6670: Computer Vision Noah Snavely Lecture 20: Light, reflectance and photometric stereo Light by Ted Adelson Readings Szeliski, 2.2, 2.3.2 Light by Ted Adelson Readings Szeliski, 2.2, 2.3.2 Properties

More information

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10 Reading Required: Shirley, Chapter 10 Shading Brian Curless CSE 557 Fall 2014 1 2 Basic 3D graphics With affine matrices, we can now transform virtual 3D objects in their local coordinate systems into

More information

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1) Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1) Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Why do we need Lighting & shading? Sphere

More information

Lights, Surfaces, and Cameras. Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons

Lights, Surfaces, and Cameras. Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons Reflectance 1 Lights, Surfaces, and Cameras Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons 2 Light at Surfaces Many effects when light strikes a surface -- could be:

More information

w Foley, Section16.1 Reading

w Foley, Section16.1 Reading Shading w Foley, Section16.1 Reading Introduction So far, we ve talked exclusively about geometry. w What is the shape of an object? w How do I place it in a virtual 3D space? w How do I know which pixels

More information

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Why do we need Lighting

More information

Game Technology. Lecture Physically Based Rendering. Dipl-Inform. Robert Konrad Polona Caserman, M.Sc.

Game Technology. Lecture Physically Based Rendering. Dipl-Inform. Robert Konrad Polona Caserman, M.Sc. Game Technology Lecture 7 4.12.2017 Physically Based Rendering Dipl-Inform. Robert Konrad Polona Caserman, M.Sc. Prof. Dr.-Ing. Ralf Steinmetz KOM - Multimedia Communications Lab PPT-for-all v.3.4_office2010

More information

Shading & Material Appearance

Shading & Material Appearance Shading & Material Appearance ACM. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. MIT EECS 6.837 Matusik

More information

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Lecture 15: Shading-I. CITS3003 Graphics & Animation Lecture 15: Shading-I CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives Learn that with appropriate shading so objects appear as threedimensional

More information

Timothy Walsh. Reflection Models

Timothy Walsh. Reflection Models Timothy Walsh Reflection Models Outline Reflection Models Geometric Setting Fresnel Reflectance Specular Refletance & Transmission Microfacet Models Lafortune Model Fresnel Incidence Effects Diffuse Scatter

More information

Computer Graphics. Illumination and Shading

Computer Graphics. Illumination and Shading () Illumination and Shading Dr. Ayman Eldeib Lighting So given a 3-D triangle and a 3-D viewpoint, we can set the right pixels But what color should those pixels be? If we re attempting to create a realistic

More information

Pipeline Operations. CS 4620 Lecture 10

Pipeline Operations. CS 4620 Lecture 10 Pipeline Operations CS 4620 Lecture 10 2008 Steve Marschner 1 Hidden surface elimination Goal is to figure out which color to make the pixels based on what s in front of what. Hidden surface elimination

More information

Shading / Light. Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham

Shading / Light. Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham Shading / Light Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham Phong Illumination Model See Shirley, Ch 10 and http://en.wikipedia.org/wiki/phong_shading

More information

Lab 9 - Metal and Glass

Lab 9 - Metal and Glass Lab 9 - Metal and Glass Let the form of an object be what it may, light, shade, and perspective will always make it beautiful. -John Constable Prologue Support code: /course/cs1230/src/labs/lab09 This

More information

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources.

So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources. 11 11.1 Basics So far, we have considered only local models of illumination; they only account for incident light coming directly from the light sources. Global models include incident light that arrives

More information

Reading. Shading. An abundance of photons. Introduction. Required: Angel , 6.5, Optional: Angel 6.4 OpenGL red book, chapter 5.

Reading. Shading. An abundance of photons. Introduction. Required: Angel , 6.5, Optional: Angel 6.4 OpenGL red book, chapter 5. Reading Required: Angel 6.1-6.3, 6.5, 6.7-6.8 Optional: Shading Angel 6.4 OpenGL red book, chapter 5. 1 2 Introduction An abundance of photons So far, we ve talked exclusively about geometry. Properly

More information

Capturing light. Source: A. Efros

Capturing light. Source: A. Efros Capturing light Source: A. Efros Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How can we approximate orthographic projection? Lenses

More information

Sung-Eui Yoon ( 윤성의 )

Sung-Eui Yoon ( 윤성의 ) CS380: Computer Graphics Illumination and Shading Sung-Eui Yoon ( 윤성의 ) Course URL: http://sglab.kaist.ac.kr/~sungeui/cg/ Course Objectives (Ch. 10) Know how to consider lights during rendering models

More information

Ligh%ng and Reflectance

Ligh%ng and Reflectance Ligh%ng and Reflectance 2 3 4 Ligh%ng Ligh%ng can have a big effect on how an object looks. Modeling the effect of ligh%ng can be used for: Recogni%on par%cularly face recogni%on Shape reconstruc%on Mo%on

More information

Illumination. Michael Kazhdan ( /657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2

Illumination. Michael Kazhdan ( /657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2 Illumination Michael Kazhdan (601.457/657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2 Ray Casting Image RayCast(Camera camera, Scene scene, int width, int height) { Image image = new Image(width, height); for

More information

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011 CSE 167: Introduction to Computer Graphics Lecture #7: Color and Shading Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011 Announcements Homework project #3 due this Friday,

More information

Local Reflection Models

Local Reflection Models Local Reflection Models Illumination Thus Far Simple Illumination Models Ambient + Diffuse + Attenuation + Specular Additions Texture, Shadows, Used in global algs! (Ray tracing) Problem: Different materials

More information

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 CSE 167: Introduction to Computer Graphics Lecture #6: Lights Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 Announcements Thursday in class: midterm #1 Closed book Material

More information

Illumination & Shading: Part 1

Illumination & Shading: Part 1 Illumination & Shading: Part 1 Light Sources Empirical Illumination Shading Local vs Global Illumination Lecture 10 Comp 236 Spring 2005 Computer Graphics Jargon: Illumination Models Illumination - the

More information

Shading I Computer Graphics I, Fall 2008

Shading I Computer Graphics I, Fall 2008 Shading I 1 Objectives Learn to shade objects ==> images appear threedimensional Introduce types of light-material interactions Build simple reflection model Phong model Can be used with real time graphics

More information

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007

Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007 Problem Set 4 Part 1 CMSC 427 Distributed: Thursday, November 1, 2007 Due: Tuesday, November 20, 2007 Programming For this assignment you will write a simple ray tracer. It will be written in C++ without

More information

Computer Vision Systems. Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations

Computer Vision Systems. Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations Computer Vision Systems Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations Viewing Systems Viewing Transformation Projective Transformation 2D Computer Graphics Devices

More information

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3.

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3. Announcements Project status reports on Wednesday prepare 5 minute ppt presentation should contain: problem statement (1 slide) description of approach (1 slide) some images (1 slide) current status +

More information

Radiometry Measuring Light

Radiometry Measuring Light 1 Radiometry Measuring Light CS 554 Computer Vision Pinar Duygulu Bilkent University 2 How do we see? [Plato] from our eyes flows a light similar to the light of the sun [Chalcidius, middle ages] Therefore,

More information

Global Illumination The Game of Light Transport. Jian Huang

Global Illumination The Game of Light Transport. Jian Huang Global Illumination The Game of Light Transport Jian Huang Looking Back Ray-tracing and radiosity both computes global illumination Is there a more general methodology? It s a game of light transport.

More information

The Rendering Equation. Computer Graphics CMU /15-662

The Rendering Equation. Computer Graphics CMU /15-662 The Rendering Equation Computer Graphics CMU 15-462/15-662 Review: What is radiance? Radiance at point p in direction N is radiant energy ( #hits ) per unit time, per solid angle, per unit area perpendicular

More information

Illumination Models & Shading

Illumination Models & Shading Illumination Models & Shading Lighting vs. Shading Lighting Interaction between materials and light sources Physics Shading Determining the color of a pixel Computer Graphics ZBuffer(Scene) PutColor(x,y,Col(P));

More information

Lecture 7 - Path Tracing

Lecture 7 - Path Tracing INFOMAGR Advanced Graphics Jacco Bikker - November 2016 - February 2017 Lecture 7 - I x, x = g(x, x ) ε x, x + S ρ x, x, x I x, x dx Welcome! Today s Agenda: Introduction Advanced Graphics 3 Introduction

More information

COMP environment mapping Mar. 12, r = 2n(n v) v

COMP environment mapping Mar. 12, r = 2n(n v) v Rendering mirror surfaces The next texture mapping method assumes we have a mirror surface, or at least a reflectance function that contains a mirror component. Examples might be a car window or hood,

More information

Materials & Shadows. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Winter 2017

Materials & Shadows. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Winter 2017 Materials & Shadows Steve Rotenberg CSE168: Rendering Algorithms UCSD, Winter 2017 Diffuse Surfaces In an earlier lecture, we discussed diffuse surfaces We looked at the idealized Lambertian diffuse case

More information

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T Copyright 2018 Sung-eui Yoon, KAIST freely available on the internet http://sglab.kaist.ac.kr/~sungeui/render

More information

BRDFs. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

BRDFs. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 BRDFs Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 The Rendering Equation Radiance Radiance is a measure of the quantity of light radiation reflected (and/or emitted) from a surface within

More information

Ray-Tracing. Misha Kazhdan

Ray-Tracing. Misha Kazhdan Ray-Tracing Misha Kazhdan Ray-Tracing In graphics, we often represent the surface of a 3D shape by a set of triangles. Goal: Ray-Tracing Take a collection of triangles representing a 3D scene and render

More information

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows Recollection Models Pixels Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows Can be computed in different stages 1 So far we came to Geometry model 3 Surface

More information

Computer Graphics (CS 543) Lecture 8 (Part 1): Physically-Based Lighting Models

Computer Graphics (CS 543) Lecture 8 (Part 1): Physically-Based Lighting Models Computer Graphics (CS 543) Lecture 8 (Part 1): Physically-Based Lighting Models Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) BRDF Evolution BRDFs have evolved historically

More information

CS580: Ray Tracing. Sung-Eui Yoon ( 윤성의 ) Course URL:

CS580: Ray Tracing. Sung-Eui Yoon ( 윤성의 ) Course URL: CS580: Ray Tracing Sung-Eui Yoon ( 윤성의 ) Course URL: http://sglab.kaist.ac.kr/~sungeui/gcg/ Recursive Ray Casting Gained popularity in when Turner Whitted (1980) recognized that recursive ray casting could

More information

Phys 102 Lecture 17 Introduction to ray optics

Phys 102 Lecture 17 Introduction to ray optics Phys 102 Lecture 17 Introduction to ray optics 1 Physics 102 lectures on light Light as a wave Lecture 15 EM waves Lecture 16 Polarization Lecture 22 & 23 Interference & diffraction Light as a ray Lecture

More information

Rendering Light Reflection Models

Rendering Light Reflection Models Rendering Light Reflection Models Visual Imaging in the Electronic Age Donald P. Greenberg October 3, 2017 Lecture #13 Program of Computer Graphics, Cornell University General Electric - 167 Cornell in

More information

Shading. Brian Curless CSE 457 Spring 2017

Shading. Brian Curless CSE 457 Spring 2017 Shading Brian Curless CSE 457 Spring 2017 1 Reading Optional: Angel and Shreiner: chapter 5. Marschner and Shirley: chapter 10, chapter 17. Further reading: OpenGL red book, chapter 5. 2 Basic 3D graphics

More information

Background: Physics and Math of Shading

Background: Physics and Math of Shading Background: Physics and Math of Shading Naty Hoffman 2K Hi. Over the next 25 minutes or so I ll be going from the physics underlying shading, to the math used to describe it in the kind of shading models

More information

Illumination and Shading

Illumination and Shading Illumination and Shading Computer Graphics COMP 770 (236) Spring 2007 Instructor: Brandon Lloyd 2/14/07 1 From last time Texture mapping overview notation wrapping Perspective-correct interpolation Texture

More information

Light Reflection Models

Light Reflection Models Light Reflection Models Visual Imaging in the Electronic Age Donald P. Greenberg October 21, 2014 Lecture #15 Goal of Realistic Imaging From Strobel, Photographic Materials and Processes Focal Press, 186.

More information

Here I ll present a brief summary of the important aspects and then dive into improvements we made on Black Ops II.

Here I ll present a brief summary of the important aspects and then dive into improvements we made on Black Ops II. We started pursuing Physically Based Shading during Black Ops, details of which I presented at SIGGRAPH 2011, as part of the Advances in Real-Time Rendering course. Here I ll present a brief summary of

More information

Illumination & Shading

Illumination & Shading Illumination & Shading Goals Introduce the types of light-material interactions Build a simple reflection model---the Phong model--- that can be used with real time graphics hardware Why we need Illumination

More information

Fundamentals of Rendering - Reflectance Functions

Fundamentals of Rendering - Reflectance Functions Fundamentals of Rendering - Reflectance Functions Image Synthesis Torsten Möller Mike Phillips Reading Chapter 8 of Physically Based Rendering by Pharr&Humphreys Chapter 16 in Foley, van Dam et al. Chapter

More information

Rendering Light Reflection Models

Rendering Light Reflection Models Rendering Light Reflection Models Visual Imaging in the Electronic Age Donald P. Greenberg October 27, 2015 Lecture #18 Goal of Realistic Imaging The resulting images should be physically accurate and

More information

CS 465 Program 5: Ray II

CS 465 Program 5: Ray II CS 465 Program 5: Ray II out: Friday 2 November 2007 due: Saturday 1 December 2007 Sunday 2 December 2007 midnight 1 Introduction In the first ray tracing assignment you built a simple ray tracer that

More information

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project To do Continue to work on ray programming assignment Start thinking about final project Lighting Course Outline 3D Graphics Pipeline Modeling (Creating 3D Geometry) Mesh; modeling; sampling; Interaction

More information

CS 4620 Program 4: Ray II

CS 4620 Program 4: Ray II CS 4620 Program 4: Ray II out: Tuesday 11 November 2008 due: Tuesday 25 November 2008 1 Introduction In the first ray tracing assignment you built a simple ray tracer that handled just the basics. In this

More information

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter? Light Properties of light Today What is light? How do we measure it? How does light propagate? How does light interact with matter? by Ted Adelson Readings Andrew Glassner, Principles of Digital Image

More information

Lecture 10: Ray tracing

Lecture 10: Ray tracing Interactive Computer Graphics Lecture 10: Ray tracing Graphics Lecture 10: Slide 1 Some slides adopted from H. Pfister, Harvard Graphics Lecture 10: Slide 2 Direct and Global Illumination Direct illumination:

More information