Jump to content

Lighting for dummies


chicagobob123
 Share

Recommended Posts

OK I have tried changing specular for the material the ground color of the light and other options trying to eliminate the highlight in the middle.

In my real app its even more pronounced. So how do you get rid of it?

I need a light like the sun that just gives off a flat light to everything with no hot spot. 

https://www.babylonjs-playground.com/indexstable#6BGZTI#1

 

 

Link to comment
Share on other sites

https://www.babylonjs-playground.com/indexstable#6BGZTI#7

Is it gone now?  Usually, just set specularColor to black.  That's what I did.

Your hemi light is perfect for "even lighting", but I re-aimed yours straight-up (0, 1, 0), which is a little more sane than your numbers were.  But any aiming is fine.

Your hemi-light groundColor is fine, but you really won't be able to tell until you get a mesh or two into the scene, lift them off the ground a bit, and look at their bottoms.  (I suppose the bottom of the ground could be used, too, eh?)

Most people set .groundColor to some kind of gray like you have already set...  new BABYLON.Color3(.3, .3, .3), or maybe BABYLON.Color3.Gray().

You're doing good, CB!  What's ya workin' on for the real app?  Is it a secret? 

Don't forget about material.emissiveColor (or emissiveTexture, with emissiveTexture.level adjuster)... which is essentially material self-illumination without casting photons (can't cast shadows and can't illuminate nearby objects).  It is good fun, too.  Be well, party on!

Link to comment
Share on other sites

 What's ya workin' on for the real app?  Is it a secret? 

OH, I work for a private company and its an app thats not released yet so not a  DOD secret but restricted. Its not a game or anything that people would consider fun to play with but its 3D web based and keeps me pushing the boundaries. 

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...