Something wrong with terrain or lighting
Hello,
so my problem is that the directional light doesen't work properly on my terrain... its weird even with the scene view light that is also directional. The terrain is covered in sand texture(not a problem) and it is set to 3000 width and 3000 length. I intended to create two islands, but then this stoped me. I spent my last three days smashing my head with this problem and i cant figure it out, so i am asking you people for help :)
screens:
this is without lighting(only scene view light): http://shrani.si/f/3s/ab/2exU6SQV/debug001.png
this happens if i turn in the direction of the light: http://shrani.si/f/3t/42/4MQWXyfL/debug002.png
this is with lighting ON and with my directional light(Sun): http://shrani.si/f/g/3Q/2Km0CLi4/debug003.png
as seen here, my rotation does not affect my directional light: http://shrani.si/f/l/OT/2YjGpjLw/debug004.png
i have a script attached to my directional light for my day/night cycle(also not problem) however this is how it looks in game :( :
http://shrani.si/f/45/5W/3fEZt0IP/debug005.png
and this is how it looks when the sun is lower: http://shrani.si/f/2I/122/16WEgWk3/debug006.png
at night everything is black, but at the morning however it is same weird stuff again.
what did i miss guys? I played around with my terrain settings, then with my directional light settings, then with my lighting settings... nothing worked :(
Answer by Miklauz · Jan 16, 2017 at 12:59 PM
UPDATE: ok so i leave that here so others can also see.
All the researching of this problem has finaly paid off. The problem was (i guess) that i had set the Color Space to Gamma in the begnning of the project and forgot about it. So i just changed it back to Linear and it looks better. I mean it still doesent look good because i messed with lighting settings pretty much to resolve this issue, but i can change that with settings. It appears the problem has gone away :)
for anyone having this problem: go to Edit - Project Settings - Player -> open up Other Settings in the inspector and set the Color Space to Linear.
ok so the problem was also, that i used wrong normal map for texture that i used to paint the terrain. If you encounter that problem then i suggest you remove your normal map and test it. If its ok then you need to use other normal map or leave it without it. Hope it helped.
For details check this: http://answers.unity3d.com/questions/857134/why-is-my-point-light-only-shining-in-one-directio.html
Your answer
Follow this Question
Related Questions
Why and What are these darker stains on my terrain? 0 Answers
Mesh is lit through the terrain? 0 Answers
Directional Light Problem 0 Answers
Terrain turning into slices when using a heightmap,Heightmap Generating Slices 0 Answers
terrain plant details not work 0 Answers