JonVarner Posted August 17, 2018 Share Posted August 17, 2018 As I continue my quest to get the most out of the blender exporter to babylon.js I have seems to hit an unexpected snag. My goal was to add a spot light to the scene and have it cast a shadow onto a ground plane. The problem, even though the light is listed in the lights array in the babylon.js file, when I load the scene they are not there and when I query the light array for the scene it is empty. I must be missing something but am not sure what. Here is the exported light from the babylon.js file. {"name":"Spot","id":"Spot","type":2,"position":[0,250,0],"direction":[0,-1,0],"angle":0.7854,"exponent":0.3,"intensity":12,"diffuse":[1,1,1],"specular":[1,1,1]} Quote Link to comment Share on other sites More sharing options...
JonVarner Posted August 17, 2018 Author Share Posted August 17, 2018 To answer my own question. I was making the mistake of using BABYLON.SceneLoader.ImportMesh() instead of BABYLON.SceneLoader.Append() Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 17, 2018 Share Posted August 17, 2018 It is quite reinsuring ? I was already seeing myself digging into the parser code. Quote Link to comment Share on other sites More sharing options...
JonVarner Posted August 17, 2018 Author Share Posted August 17, 2018 Sorry for the false alarm. Sebavan 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 17, 2018 Share Posted August 17, 2018 I prefer those than no alarm and lot of experiences not working, do not hesitate. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.