Jump to content

Lights listed in babylon.js file not loading in scene.


JonVarner
 Share

Recommended Posts

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]}

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...