#Spot light not working / No cone shown on scene

1 messages · Page 1 of 1 (latest)

lament moth
#

Sorry for the stupid question but I added a spot light and its not working at all. I'm just trying to add a shadow to a 3d object.

#

Maybe it has something to do with the environment lighting?

#

Yeah...there is something I'm not understanding about lighting. Here is another scene. I want to make the lack of light to appear as hex color #231F20. The settings I thought would do it are doing nothing.

#

My expectation is the scene would be gray not black.

#

I would appreciate any help

ruby current
#

As well as scene lighting :

#

From what I see in the first screenshot, the spot is pointing down.

lament moth
#

Thank you for pointing that out. I still can't get a shadow to display for some reason. I put a cube in the scene to make it easier.

ruby current
#

Are the background flat objects actually using lit materials and not unlit ?

lament moth
#

The gray background is a quad using URP/Lit. The cube is using the same. The LogoMesh is using a custom lit shader.

#

First image has the cube inspector info

ruby current
#

You might need to check your URP Asset (Mobile-RPAsset).
For spot lights, "Assitional Lights" needs to be set to "Per Pixel", with "Cast Shadows" enabled :

lament moth
#

Thanks for the screenshot. Additional lifhts was not checked for cast shadows but there seems to be another thing that is preventing shadows

#

Here is the spot light

#

I just noticed my scene "Global Volume" object has no volume profile assigned. When I choose Mobile Volume, it autoselects everything as enabled. I went through everything and I don't see anything I want so I switched it back to "None" figured I would mention it.

snow laurel
#

Also check that the cube's shader is URP Lit

lament moth
#

Cube shader is URP Lit

#

So, the ambient light color is white...if I make it a darker color everything gets dark/destroys the color I picked for my backgroundQuad and the logo colors. No shadows appear either 😭

#

or maybe I can't see the shadows?

#

Sorry...this is my first time learning about lights. The spot light doesn't seem to be working how I would expect but I don't know what is wrong

snow laurel
lament moth
#

makes sense

#

I believe the spot light I posted at the very top of this thread should provide lighting to do so

snow laurel
lament moth
#

Awww yeah!

#

Thank you so very much! I really appreciate both of your help.

#

I really makes a big difference for me.

#

Can I ask one more question? Is it possible to make the black of no light a dark gray?

ruby current
#

Forget the background quad and use the camera background color
(if don't want to see the spot affecting the background)

snow laurel
#

If you want your background or another object to be unaffected by lighting, you can use the Unlit shader
Or the Lit shader but compensate using Emission color to have it partially affected by lighting

ruby current
snow laurel
lament moth
#

@Remy : I made that change but I lost my shadows. I'm assuming I need the quad to have something to cast the shadows upon. Am I missing something?

snow laurel
#

And some actual geometry there

lament moth
#

My shadows are working...but they are appearing on the quad

snow laurel
#

And since shadows are an absence of light, ambient light and material emission can wash out casted shadows

lament moth
#

if I take away the quad they disappear

#

@snow laurel : Can I start a new question here or is it protocol to open a new thread? I have a scene that has an ambient color of gray. No lighting enabled and its completely black. My goal is to start with complete gray and then turn on the lights slowly and reveal a scene...do you think this is possible?

snow laurel
lament moth
#

Sounds like a plan. It sounds like there is no setting to make the absence of light anything but black. I tried googling for a long time and couldn't find anything.