Greetings!

Welcome to Scifi-Meshes.com! Click one of these buttons to join in on the fun.

spotlight introducing wierd shadow

lancerlancer0 Posts: 0Member
I've got a scene setup. about 8 ships. space scene.

plain black backdrop while I get t hings into place.

2 lights

all spot

no ambient light

1 main light set to 90% + shadow map at 2.0 2048
2 spots set to 10% to be kick and fill lights, no shadow.

if I turn off both the kick and fill light leaving just the main light on.

if I have this light close to the lead ship, it gives me solid hard shadows which is what I expect.

if I pull back on the light, there are some intakes on the wings that are now lit inside, almost as if some light is bouncing into them?

but I haven't changed anything, all I've done is track the light back further away in the scene to light all the ships.

no radiosity set, so how can that be?

is it some wierd light bounce?

I've made sure there are no holes in the mesh, I know there aren't because it doesn't do this when the spotlight is up close.

using LW 9.2 BTW.
Post edited by lancer on

Posts

  • fluxfirefluxfire181 Posts: 604Member
    Did you take into account the size of the spot light as you move the light back away from the models? I know that sounds stupid. but can't rule out the simple things :p
  • biotechbiotech171 Posts: 0Member
    Try using area shadows, see if that helps.
  • IRMLIRML253 Posts: 1,993Member
    ok firstly biotech - he was asking "how this happened" not for an alternative shadow option, and he'd be using area shadows if he wanted to, shadow maps is for saving render time, so that's a pretty lame suggestion

    lancer - the reason for this is because the shadow map is just an image of the shadow, blurred and then projected onto the geometry, when you put the light close up you're getting a lot of that image projected onto the geometry, but when you move further away the geometry takes up a smaller part of that image, so the shadow you see on the model effectivly becomes a lot lower resolution than 2048, meaning you get inaccuracies like funny edges to the shadows and gaps in the shadows making it look like light comming is through, which is your problem

    if you've moved the light back so it illuminates more ships then the only way you can fix this is to make the resolution of the map higher, but if you think you can get away with the light where it is but only the main ship having shadows on it then you change the area that the shadow map projects on, so it'll be like it was when you had the light closer to the ship
  • mattcmattc181 Perth, AuPosts: 322Member
    i.e. use area lights and don't worry about pesky shadow maps :)
  • lancerlancer0 Posts: 0Member
    ah got you. so it's a shadow map thing, hmm makes sense. what if I created a spotlight per ship that lights that ship and that ship only?

    keeps the spot close in, gives me more complete shadow control and also what is an isn't lit. or from a pro SFX standpoint, is area lights with ray traced shadows the way to be going?

    btw, thinking about this whole shadow map projection thing, would that explain how I sometimes get wierd shadow movement in an animation as the generated shadow map is not moving the same as the actual ship it is being projected on to.
  • ComcoComco317 Posts: 1,281Administrator
    lancer wrote: »
    btw, thinking about this whole shadow map projection thing, would that explain how I sometimes get wierd shadow movement in an animation as the generated shadow map is not moving the same as the actual ship it is being projected on to.

    That would stand to reason. I am not an expert on such matters but I always prefer to use Raytraced shadows for space scenes...It renders a shadow based on a true 'line of sight' solution if I understand correctly...So the results are far more consistent between frames etc. It also gives a sharper more 'realistic' looking image in most cases and also helps bring out fine modeled details in a mesh that shadow mapping simply isn't robust enough to do...Take a model with a reasonable amount of detail, render it with shadow maps then change to raytraced and you should see what I mean...

    Back in the old days when more than a few of us were doing this stuff with Pentium 2s and 3s, raytraced shadows meant a huge bump in rendering time. Fortunately, with CPU speeds being what they are today, that particular drawback isn't a big deal anymore... :)
Sign In or Register to comment.