hello, I am a beginneer in unity and I cant find the way to illuminate my objects I got from the unity asset store.
when I try to give some realtime illumination to some object with some type of realtime light (spot / point), they just dont react at all, they stay dark
but they get the illumination from reflection light from other objects (on the Image one i think you can see than I am shooting light from left to right but the most illuminated one is the left wall…)
I have tried so far:
-check the shaders (happends event with urp lit shader)
-changing materials
-baking lights tons of times
-deleting light cache
-trying mixed lights and realtime lights
-checked meshes for corrects uv
something I noticed is than sometimes the border of the meshes also bright with the lighning, idk if that has something to do…
what I want to do: than my walls when they get hit by a realtime light, they not just reflect light, also bright themselves lol
For realtime lights you shouldn’t be getting any indirect/bounced lighting at all. In other words, that spotlight shouldn’t be illuminating the left wall at all. It looks like your scene has several lights, are you sure that left wall isn’t bright due to an extra point light? You can use the Light Explorer (Window > Rendering > Light Explorer) to get an overview over the lights in your scene. You may just need to increase the intensity of the spotlight.
hello thanks a lot for the reply!
[that spotlight shouldn’t be illuminating the left wall at all. ]
I dont know what to say, I added two more pictures so you can see the behaviour when I am aiming to the wall, and when I dont
brightness level)
not aiming:
aiming:
I tried ereasing all the other lights and letting just the spot light on real time (as you can check in the pictures added), and also checked the intensitiy but it was already pretty high (lowered in the pictures I sent so you can see better the results and not just all white)
[are you sure that left wall isn’t bright due to an extra point light?]
yeah, I disabled the “Light” component of those objects before taking the screenshot, thanks for asking, also just for check, I disabled all the objects this time but results were the same
[You can use the Light Explorer (Window > Rendering > Light Explorer) to get an overview over the lights in your scene.]
thats nice to know, thanks!
there is any other thing I should/could check for try to resolve this?
after some research I found the reasons of my problems.
seemed that I had in my lightning settings a very low number for limit of [Pixel light count], (from here is speculation) so I could see my light only showing on some surfaces because when I aimed on those objects, there were fewer lights on those moments and my light would react.
also the problem with the other surfaces becoming brighter, was that the light I was using had [Indirec multiplier] which should not work on realtime as far as I know, but somehow it just does (on the editor), and even the realtime light is not beign shown by the limit explained over, the reflections did work making the walls brigther.
the video I found my solution: https://www.youtube.com/watch?v=7QmsTgmOkyg