{"id":805,"date":"2012-03-25T01:59:13","date_gmt":"2012-03-24T22:59:13","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=805"},"modified":"2012-03-25T02:03:25","modified_gmt":"2012-03-24T23:03:25","slug":"fake-shadow-using-particles-as-light-photons","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/03\/25\/fake-shadow-using-particles-as-light-photons\/","title":{"rendered":"Fake Shadow Ideas: Using Particles as Light Photons?"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"806\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/03\/25\/fake-shadow-using-particles-as-light-photons\/fake_shadow_particles_as_light_photons1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_shadow_particles_as_light_photons1.jpg?fit=680%2C512&amp;ssl=1\" data-orig-size=\"680,512\" 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=\"fake_shadow_particles_as_light_photons1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_shadow_particles_as_light_photons1.jpg?fit=680%2C512&amp;ssl=1\" class=\"alignnone size-full wp-image-806\" title=\"fake_shadow_particles_as_light_photons1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_shadow_particles_as_light_photons1.jpg?resize=680%2C512\" alt=\"\" width=\"680\" height=\"512\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_shadow_particles_as_light_photons1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_shadow_particles_as_light_photons1.jpg?resize=300%2C225&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>This is quite an early test.. what if you use particles as &#8220;light photons&#8221; ? Then no need to do raycasting?<\/p>\n<p><strong>Current features: <\/strong>(main screenshot)<br \/>\n&#8211; Shuriken particle system, Shape: Cone, angle:90<br \/>\n&#8211; Collision planes on those white boxes (uh.<a title=\"http:\/\/answers.unity3d.com\/questions\/219182\/unity-35-particle-collision.html\" href=\"http:\/\/answers.unity3d.com\/questions\/219182\/unity-35-particle-collision.html\" target=\"_blank\">.shuriken doesnt support &#8220;world collisions&#8221;<\/a>, only infinity planes that you need to manually pick\/add..Oo?)<br \/>\n&#8211; Take each particle position, draw a light mesh there, currently shown as boxes..code taken from <a title=\"http:\/\/unitycoder.com\/blog\/2012\/02\/15\/dummy-craft-chunk-renderer-js\/\" href=\"http:\/\/unitycoder.com\/blog\/2012\/02\/15\/dummy-craft-chunk-renderer-js\/\" target=\"_blank\">ChunkRenderer<\/a><\/p>\n<p><strong>Ideas:<\/strong><br \/>\n&#8211; optimize: only draw outer edges of the light mesh? how to build closed hull from random points in unity?<br \/>\n&#8211; particles can bounce, lose strengh = less light? if 1 area has many particles = brighter?<br \/>\n&#8211; draw particle location on lowres texture with setpixel instead? and use that as a light or projector mask?<br \/>\n&#8211; particles could stop moving after they hit the wall? (then you have outer edges of the light? triangulate that and draw mesh?)<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\ncoming later..<\/p>\n<p><strong>Download source:<\/strong><br \/>\ncoming later..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is quite an early test.. what if you use particles as &#8220;light photons&#8221; ? Then no need to do raycasting? Current features: (main screenshot) &#8211; Shuriken particle system, Shape: Cone, angle:90 &#8211; Collision planes on those white boxes (uh..shuriken doesnt support &#8220;world collisions&#8221;, only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":806,"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":[7,52,212,759,213,40,183],"class_list":["post-805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-fake","tag-light","tag-marching","tag-particles","tag-photons","tag-shadow","tag-shuriken"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_shadow_particles_as_light_photons1.jpg?fit=680%2C512&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-cZ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/805","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=805"}],"version-history":[{"count":5,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":816,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/805\/revisions\/816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/806"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}