Aller au contenu

Photo

How do you make buildings cast shadows?


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
Bibdy

Bibdy
  • Members
  • 1 455 messages
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?

Modifié par Bibdy, 29 novembre 2009 - 01:24 .


#2
georage

georage
  • Members
  • 247 messages
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

#3
georage

georage
  • Members
  • 247 messages
i just checked again, my buildings are not casting real shadows either. I am not sure about this one.

#4
Bibdy

Bibdy
  • Members
  • 1 455 messages
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
Qkrch

Qkrch
  • Members
  • 128 messages
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
PavelNovotny

PavelNovotny
  • Members
  • 344 messages
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
FalloutBoy

FalloutBoy
  • Members
  • 580 messages
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
Kusako

Kusako
  • Members
  • 8 messages
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
FalloutBoy

FalloutBoy
  • Members
  • 580 messages

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.