Shadow not calculated correctly

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Riki
Posts: 30
Joined: Tue Feb 27, 2007 9:12 pm
Location: Croatia

Shadow not calculated correctly

Post by Riki »

Hi all,

The shadows are applied once on each scene graph if streched over more than one (at least I guess)!

Please take a look at the following pictures:
www.titanium.hr/sydneyshadow1.JPG
Here Sydney stands on a box. I first thougt the shadow is applied twice because the box itself is has no ShadowVolume. (But even if it should not be applied that way).

or
www.titanium.hr/sydneyshadow2.JPG

Here you can clearly see that the shadow is casted on the floor than again on the wall.

The meshes used are the standard ones (sydney + room) that come with the tutorials in addition to some boxes and barrels.


Have a nice day
Riki
Last edited by Riki on Fri Mar 16, 2007 9:26 am, edited 1 time in total.
lester
Posts: 86
Joined: Mon Jan 29, 2007 3:33 pm

Post by lester »

And what? Thats normal because there might be a shadow from the corner of that step where the sydney is standing on. But as the room does not have a shadow wolume, the shadow does not cast.
Riki
Posts: 30
Joined: Tue Feb 27, 2007 9:12 pm
Location: Croatia

Post by Riki »

lester wrote:And what? Thats normal because there might be a shadow from the corner of that step where the sydney is standing on. But as the room does not have a shadow wolume, the shadow does not cast.
Sure but even then the foots shouldnt be casted twice.
Take a closer look:
1. The feet are casted to the floor
2. The shadow is discountinued at the step because the missing room shadow volume
3. The shadow is casted again on the water/wall but THE FEETS ARE SHOWN AGAIN!!!


C ya
Riki
Last edited by Riki on Fri Mar 16, 2007 9:29 am, edited 1 time in total.
Riki
Posts: 30
Joined: Tue Feb 27, 2007 9:12 pm
Location: Croatia

Post by Riki »

Also take a look at this picture: http://www.titanium.hr/sydneyshadow3.JPG

At the top floor where sydney stands are two shadows, one that goes under the barrel??? And one on the barrel.
Next you have another shadow on the lower floor (which is totaly wrong since it starts with the feets again), and one more on the next one etc.


Something is really mixed up with the shadow calculations :shock:
Post Reply