Page 1 of 1
Shadows, Shadow regions, and other shadowy problems
Posted: Thu Mar 12, 2015 2:55 pm
by ZoomV
So I've been trying to improve the lighting in my maps but I have been having issues.
When I tried to use a shadow region in the Treefall cave, instead of making the cave darker I ended up with this eyesore.
Also I have had these lines cropping up across my map, and I have no idea what's causing them. I'm thinking it might have something to do with the world shadow map, but I'm not sure how.
Re: Shadows, Shadow regions, and other shadowy problems
Posted: Thu Mar 12, 2015 9:53 pm
by Marth8880
Shadow regions don't affect terrain or static objects like props (the CP's being affected because it's dynamic due to its special properties and junk). Use omni-lights or region-bound directional lights to light specific parts of terrain.
Edit:
Just realized that's not even terrain in the first image!

With that said, is your shadow region encompassing the entire Geonosis prop? Also, I took a look at the stock geo_prop_cave.msh.option file and it contains "-vertexlighting", which is likely the cause of your first problem. Does your prop's msh.option file still have this parameter? If so, try removing it.
In regards to your second problem, what does your world shadow map texture look like? :0 What are the WorldShadowMap effect settings set to in your map's ENVFX file?
Re: Shadows, Shadow regions, and other shadowy problems
Posted: Thu Mar 12, 2015 10:12 pm
by ZoomV
World shadow map is stock endor, with stock endor settings in the file
Re: Shadows, Shadow regions, and other shadowy problems
Posted: Thu Mar 12, 2015 10:13 pm
by Marth8880
What happens if you disable it?
Re: Shadows, Shadow regions, and other shadowy problems
Posted: Fri Mar 13, 2015 7:34 pm
by AQT
ZoomV wrote:Also I have had these lines cropping up across my map, and I have no idea what's causing them.
I had a similar (if not the same) problem before and it was due to terrain cutters. Did you recently add any new terrain cutters to the map?
Re: Shadows, Shadow regions, and other shadowy problems
Posted: Sun Mar 15, 2015 3:49 pm
by ZoomV
Just the two terrain cutters from the geonosis cave asset
EDIT
Marth8880 wrote:What happens if you disable it?
If I disable the world shadow map, the lines go away.
EDIT: I think I figured it out. I changed the rotation of the main directional light to match the rotation of Endor's light, and the lines went away. Apparently the lines occur when the angle between the directional light and the terrain becomes too shallow.
EDIT2: The only way I can get it to not have the lines is to have the directional light have a
identical rotation to the stock endor directional. Any deviation is causing the lines.

Re: Shadows, Shadow regions, and other shadowy problems
Posted: Tue Mar 17, 2015 2:05 pm
by jedimoose32
Would you consider making your own shadow map and seeing how well that works?