Jump to content

How do you create a light at a point in space with no backdrop?


Recommended Posts

I'm working on my project here: 



at the time of writing you should see there are some lights in the "atmosphere" of the planets, I'm trying to create a light at the blue spot, I want light to come from that spot by itself and not cast on anything else on the seen 


I've tried point lights but I can't see them directly, I can only see their affect on other objects in the scene, how do I get them to shine by themselves? 

Link to comment
Share on other sites

Hi arcanine.  Here's a working example with a few fun add-ons. 




.emissiveColor is a property on a StandardMaterial, so your lightsphere needed a StandardMaterial added to its .material property, and then THAT material is where you set an .emissiveColor.


Also note that... when using BABYLON.Color3( r, g, b ) ...  r, g, and b are values between 0 and 1, generally speaking.  A medium gray would look like this...


new BABYLON.Color3(.5, .5, .5);


There IS a way to use 0-255 values...


new BABYLON.Color3.FromInts(128, 128, 128);  (medium gray)


Hope this all helps.  Good luck.

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.

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.


  • Recently Browsing   0 members

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