Dynamic spot light penetrates a wall

Posted By: Badrizmo

Dynamic spot light penetrates a wall - 06/01/10 13:44

I'm having a room with two pillars inside, when I created a rotating spot light in this room the pillars are not casting dynamic shadows and the spot light is passing through them to the room wall? I need to understand how can I make dynamic shadows for those pillars
Posted By: the_clown

Re: Dynamic spot light penetrates a wall - 06/01/10 15:41

You have to set the pillar's CAST flag;
For the other problem, just group the room's meshes and set the SINGLE MESH flag.
Posted By: Badrizmo

Re: Dynamic spot light penetrates a wall - 06/01/10 20:08

That didn't work, when I checked the manual I found that if the cast flag is set for a light emitting entity, the light will cast stencil shadows. So set it for the light emitting entity. In my script I wrote the below line before the level_load

shadow_stencil = 4;

But the pillar still don't cast shadows!!

Also I have set the single mesh flag for the room and this dind't prevent the light from penetrating to the other rooms
Posted By: alibaba

Re: Dynamic spot light penetrates a wall - 06/01/10 20:12

If the pillars are models, then you have to check the "shadow" flag in wed.
if they are block then you can convert them to models and make the step above or you use a shadowmapping shader.
Posted By: Badrizmo

Re: Dynamic spot light penetrates a wall - 06/02/10 04:02

well they are already map entities, the shadow flag is not casting shadows based on the direction of the light so I guess the best solution for this is to use a shadow mapping shader.
Posted By: Grimber

Re: Dynamic spot light penetrates a wall - 06/02/10 19:13

may need to adjust your shadow_threshold

or your map ambient lighting levels

© 2024 lite-C Forums