text: [{"Owner":"Darcey","Date":"2016-08-17T17:07:41Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI was doing some tests with BabylonJS and while checking out the lights I found that the spotlight goes through some objects but not others? Is this a bug of babylonjs or something I_t_ve done?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tExample can be seen here_co_ the spotlight hits the top cube/box/rectangle and passes through to the floor and smaller cubes/boxes/rectrangles._lt_br /_gt__lt_br /_gt__lt_a href_eq__qt_http_dd_//dev.aftc.co.uk/WebGL/BabylonJS/06_Lights2_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//dev.aftc.co.uk/WebGL/BabylonJS/06_Lights2_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIdeas?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tD\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Wingnut","Date":"2016-08-18T18:28:00Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/23214-darcey/?do_eq_hovercard_qt_ data-mentionid_eq__qt_23214_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/23214-darcey/_qt_ rel_eq__qt__qt__gt_@Darcey_lt_/a_gt__co_ welcome to the BabylonJS forum... good to have you with us.  Nice looking scene... I like it.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tActually_co_ spotlight beams travel through everything... unless... they hit a mesh which has been included in the renderlist of a shadowGenerator assigned to THAT light.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAt least I _lt_em_gt_think _lt_/em_gt_that is correct.  _lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt_ /_gt__lt_/p_gt_\n\n_lt_p_gt_\n\tI believe the same is true for two other types of lights which can produce shadows... the pointLight and the directionalLight.  I don_t_t think the hemisphericLight (often aimed 0_co_ 1_co_ 0 - to the sky_co_ reflecting highly-dispersed/refracted light-rays from the atmosphere) can produce shadows at all.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI_t_ll give you some time to ponder that_co_ and experiment if you like.  Holler if you have more questions.  And again_co_ welcome!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tPS_dd_  Just in case you are curious about the maximum number of lights that a single _lt_u_gt_material_lt_/u_gt_ can handle_co_ it defaults at 4_co_ but you can set _lt_em_gt_material.maxSimultaneousLights_lt_/em_gt_ to higher numbers... and stretch those limits a bit.  _lt_a href_eq__qt_http_dd_//playground.babylonjs.com/#BIVOB%238_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//playground.babylonjs.com/#BIVOB#8_lt_/a_gt_  (see lines 24/25)  Fun!  _lt_em_gt_Some_lt_/em_gt_ FPS slowing seen_co_ though.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"aWeirdo","Date":"2016-08-18T18:51:06Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t_lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/23214-darcey/?do_eq_hovercard_qt_ data-mentionid_eq__qt_23214_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/23214-darcey/_qt_ rel_eq__qt__qt__gt_@Darcey_lt_/a_gt_ It appears only to be your light3 causing this issue_co_ _lt_br /_gt__lt_br /_gt_\n\tTry adding your flying plate to light3_t_s _qt_includedOnlyMeshes_qt__lt_br /_gt__lt_br /_gt_\n\tPG_dd_ _lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#1FUKMR%231_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#1FUKMR#1_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t//If you comment out line 35_co_ _qt_light.includedOnlyMeshes _eq_ [sphere]_sm__qt_ the spotlight will also hit the ground\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"jerome","Date":"2016-08-18T19:07:15Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tnice scene anyway _dd_-)\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tjust a personal advice _dd_ use _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/tutorials/How_to_use_Instances_qt_ rel_eq__qt_external nofollow_qt__gt_instances_lt_/a_gt_ or _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/overviews/Solid_Particle_System_qt_ rel_eq__qt_external nofollow_qt__gt_SPS_lt_/a_gt_ (solid particle system) instead of so many occurences of a BJS box and the perfs will be far more better\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Nabroski","Date":"2016-08-19T00:17:00Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.html5gamedevs.com/topic/15631-self-shadowing-1-mesh-with-submeshes/_qt_ rel_eq__qt__qt__gt_http_dd_//www.html5gamedevs.com/topic/15631-self-shadowing-1-mesh-with-submeshes/_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#1FUKMR%232_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#1FUKMR#2_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]