{"id":485,"date":"2012-01-24T23:26:01","date_gmt":"2012-01-24T20:26:01","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=485"},"modified":"2013-08-15T22:13:21","modified_gmt":"2013-08-15T19:13:21","slug":"ray-tracing-photon-mapping-render-unity3d-c","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/01\/24\/ray-tracing-photon-mapping-render-unity3d-c\/","title":{"rendered":"Ray Tracing &#038; Photon Mapping (Unity3D C#)"},"content":{"rendered":"<p><a href=\"http:\/\/unitycoder.com\/upload\/demos\/mRayTracingPhotons1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"486\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/01\/24\/ray-tracing-photon-mapping-render-unity3d-c\/mradiosityrender1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mradiosityrender1.jpg?fit=680%2C506&amp;ssl=1\" data-orig-size=\"680,506\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mradiosityrender1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mradiosityrender1.jpg?fit=680%2C506&amp;ssl=1\" class=\"alignnone size-full wp-image-486\" title=\"mradiosityrender1\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mradiosityrender1.jpg?resize=680%2C506\" width=\"680\" height=\"506\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mradiosityrender1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mradiosityrender1.jpg?resize=300%2C223&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>Converting some ray tracing code from java\/processing (original source by Grant Schindler\/2007)<\/p>\n<p>1st version works fine already, just missing the user interactions.. (and its quite slow at the moment)<\/p>\n<p><strong>Current progress: v1.0<\/strong><br \/>\n&#8211; 512&#215;512 render:\u00a0 time 23.65258s (got it down to 16.54801s, if disable preview while rendering..)<br \/>\n&#8211; 128&#215;128 render: 1.34s<br \/>\n&#8211; Didnt manage to make it faster with small changes, giving up for now.<br \/>\n&#8211; Its quite fast in low resolution..<br \/>\n&#8211; Here is more interesting project, too bad no sources to download? <a title=\"http:\/\/forum.unity3d.com\/threads\/27612-Real-time-global-illumination\" href=\"http:\/\/forum.unity3d.com\/threads\/27612-Real-time-global-illumination\" target=\"_blank\">http:\/\/forum.unity3d.com\/threads\/27612-Real-time-global-illumination<\/a><\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a href=\"http:\/\/unitycoder.com\/upload\/demos\/mRayTracingPhotons1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/mRayTracingPhotons1\/<\/a><\/p>\n<p><strong>Download source: (C#)<\/strong><br \/>\n<a title=\"Download source\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=128&amp;uid=un1t3c0d5r\" target=\"_blank\">RayTracePhoton.unity<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting some ray tracing code from java\/processing (original source by Grant Schindler\/2007) 1st version works fine already, just missing the user interactions.. (and its quite slow at the moment) Current progress: v1.0 &#8211; 512&#215;512 render:\u00a0 time 23.65258s (got it down to 16.54801s, if disable preview [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":486,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,3],"tags":[62,131,129,127,130,128,132],"class_list":["post-485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-3d","tag-ambient-occlusion","tag-photon","tag-ray-tracing","tag-reflections","tag-render","tag-shadows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mradiosityrender1.jpg?fit=680%2C506&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-7P","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":10,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":2307,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/485\/revisions\/2307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/486"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}