Modifié par Bibdy, 29 novembre 2009 - 01:24 .
How do you make buildings cast shadows?
Débuté par
Bibdy
, nov. 29 2009 01:21
#1
Posté 29 novembre 2009 - 01:21
So fiddling with the exterior area editor, I'm trying to get the sunlight to cast shadows on the terrain due to my buildings, but they don't seem to be coming up. Is this a limitation of the 'dumbed-down' lightmapper that came with the game, or have I messed around with something I shouldn't have?
#2
Posté 29 novembre 2009 - 01:45
i think buildings cast shadows, i just posted a screenshot ... check the shadow under the building.
try following the steps under "making water appear" sticky to see if that does it?
http://social.biowar...74/index/312367
try following the steps under "making water appear" sticky to see if that does it?
http://social.biowar...74/index/312367
#3
Posté 29 novembre 2009 - 01:57
i just checked again, my buildings are not casting real shadows either. I am not sure about this one.
#4
Posté 29 novembre 2009 - 03:15
Well, seems like you can do the old tried-and-true method of simply planting a light way up in the sky, in the general direction of the sun/moon, set its Point Radius to retarded, render lightmaps and it gives you the kind of shadows you'd expect on buildings and terrain alike. Not sure what the purpose of sunlight is in that case. Perhaps its only there to generate shadows on actors and the reflection on water in the game.
#5
Posté 29 novembre 2009 - 05:23
Catch the last lightmapper version (somewhere sticky in the toolset forums), that will display sunlight as should be. Version that comes with the toolset doesn't work.
#6
Posté 29 novembre 2009 - 07:02
The shadow your building casts depends on the angle of your sunlight. If you move the sun around (through the Exportable Area Properties) you will get different shadows.
#7
Posté 29 novembre 2009 - 07:52
Make sure your ambient light is not too bright. That was my problem at first. Once I lowered that and set my sunlight direction, then I got shadows in my lightmaps.
#8
Posté 30 novembre 2009 - 09:52
Hm, I don't see shadows even with sunlight only. Ambient Occlusion works, an my character casts a shadow, but the level gemoetry doesn't. Probably have to play araound some moe with sunlight settings. Last time I tested with Trees, just to find that they aren't supposed to cast shadows...
#9
Posté 30 novembre 2009 - 06:43
Kusako wrote...
Hm, I don't see shadows even with sunlight only. Ambient Occlusion works, an my character casts a shadow, but the level gemoetry doesn't. Probably have to play araound some moe with sunlight settings. Last time I tested with Trees, just to find that they aren't supposed to cast shadows...
You're right. I was mistaken. I have not been able to get sunlight to affect the lightmaps at all. It only seems to affect the characters.
You can work around the problem by making a really large baked point light with the same parameters as the sun. Baked lights do indeed create shadows in your lightmap. I tend to think this is a bug though because why would they just ignore the sunlight when generating lightmaps?
For now, I am just ambient lighting everything and will worry about it later.





Retour en haut






