{"id":23,"date":"2008-10-20T01:06:19","date_gmt":"2008-10-20T08:06:19","guid":{"rendered":"http:\/\/www.kevinbeason.com\/worklog\/?p=23"},"modified":"2008-10-20T01:42:21","modified_gmt":"2008-10-20T08:42:21","slug":"fixed-absorption-of-photons-and-rays","status":"publish","type":"post","link":"https:\/\/www.kevinbeason.com\/worklog\/2008\/10\/20\/fixed-absorption-of-photons-and-rays\/","title":{"rendered":"Fixed absorption of photons and rays"},"content":{"rendered":"<p>I fixed some simple bugs in the absorption of photons and along rays 6 months ago. The first image is from a debugging session for this. Second image shows a cognac glass with fixed absorption, and also\u00c2\u00a0 a text label in the bottom right corner that is automatically added now. The rather hideous texture is something I made in Gimp.<\/p>\n<p>I abandoned my triangle-only architecture and moved to a more flexible one using inheritance. Of course I have Primitive::TriangleMesh, but here is a Primitive::Instance(Primitive::Sphere) which means its an instance of sphere, where the instancing&#8217;s matrix is used to store the ellipsoid transformation. I guess this must be the most boring instancing image ever created. Still, it&#8217;s an achievement!<\/p>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-23 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kevinbeason.com\/worklog\/2008\/10\/20\/fixed-absorption-of-photons-and-rays\/image307\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kevinbeason.com\/worklog\/wp-content\/uploads\/2008\/10\/image307-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kevinbeason.com\/worklog\/2008\/10\/20\/fixed-absorption-of-photons-and-rays\/imagecognac\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kevinbeason.com\/worklog\/wp-content\/uploads\/2008\/10\/imagecognac-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kevinbeason.com\/worklog\/2008\/10\/20\/fixed-absorption-of-photons-and-rays\/image701\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kevinbeason.com\/worklog\/wp-content\/uploads\/2008\/10\/image701-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/dt><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n<p>Gallery links to full-size images thanks to <a href=\"http:\/\/wordpress.org\/support\/topic\/167240\">this thread<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I fixed some simple bugs in the absorption of photons and along rays 6 months ago. The first image is from a debugging session for this. Second image shows a cognac glass with fixed absorption, and also\u00c2\u00a0 a text label in the bottom right corner that is automatically added now. The rather hideous texture is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":8,"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/posts\/23\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kevinbeason.com\/worklog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}