{"id":745,"date":"2012-03-10T00:54:56","date_gmt":"2012-03-09T21:54:56","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=745"},"modified":"2012-03-11T00:42:14","modified_gmt":"2012-03-10T21:42:14","slug":"fake-texture-illumination","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/03\/10\/fake-texture-illumination\/","title":{"rendered":"Fake Illumination Based on Object Texture Color"},"content":{"rendered":"<p><a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/FakeColorIllumination1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"746\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/03\/10\/fake-texture-illumination\/fake_illumination_by_texture\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_illumination_by_texture.jpg?fit=680%2C520&amp;ssl=1\" data-orig-size=\"680,520\" 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_illumination_by_texture\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_illumination_by_texture.jpg?fit=680%2C520&amp;ssl=1\" class=\"alignnone size-full wp-image-746\" title=\"fake_illumination_by_texture\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_illumination_by_texture.jpg?resize=680%2C520\" alt=\"\" width=\"680\" height=\"520\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_illumination_by_texture.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_illumination_by_texture.jpg?resize=300%2C229&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>Testing how it would look, if objects &#8220;illuminate&#8221; light around them (using colored lights), based on texture colors..<\/p>\n<p><strong>Version#1<\/strong> (info)<br \/>\n&#8211; On startup, script goes thru target object vertices, triangles, normals, uv&#8217;s and creates colored lights<br \/>\n&#8211; Currently using point lights, should be better with spot \/ projector lights..<br \/>\n&#8211; Lights are not created for every face, just if normal angle is different from previous<br \/>\n&#8211; Could add max light limit per object, just add 6 lights (on each side of bounding box..) etc..<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/FakeColorIllumination1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/FakeColorIllumination1\/<\/a><\/p>\n<p><strong>Source download:<\/strong><br \/>\ncoming later..<\/p>\n<p>&#8212;<\/p>\n<p><strong>image#2<\/strong>: Box texture<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"747\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/03\/10\/fake-texture-illumination\/lightboxuvmap1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/lightboxuvmap1.jpg?fit=300%2C300&amp;ssl=1\" data-orig-size=\"300,300\" 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=\"lightboxuvmap1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/lightboxuvmap1.jpg?fit=300%2C300&amp;ssl=1\" class=\"alignnone size-full wp-image-747\" title=\"lightboxuvmap1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/lightboxuvmap1.jpg?resize=300%2C300\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/lightboxuvmap1.jpg?w=300&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/lightboxuvmap1.jpg?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing how it would look, if objects &#8220;illuminate&#8221; light around them (using colored lights), based on texture colors.. Version#1 (info) &#8211; On startup, script goes thru target object vertices, triangles, normals, uv&#8217;s and creates colored lights &#8211; Currently using point lights, should be better with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":746,"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":[79,7,204,202,52,203],"class_list":["post-745","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-color","tag-fake","tag-glow","tag-illumination","tag-light","tag-radiance"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/03\/fake_illumination_by_texture.jpg?fit=680%2C520&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-c1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/745","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=745"}],"version-history":[{"count":5,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/745\/revisions"}],"predecessor-version":[{"id":750,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/745\/revisions\/750"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/746"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}