Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dynamic spot light penetrates a wall #326509
06/01/10 13:44
06/01/10 13:44
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
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

Last edited by Badrizmo; 06/01/10 13:45.
Re: Dynamic spot light penetrates a wall [Re: Badrizmo] #326538
06/01/10 15:41
06/01/10 15:41
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
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.

Re: Dynamic spot light penetrates a wall [Re: the_clown] #326613
06/01/10 20:08
06/01/10 20:08
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
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

Re: Dynamic spot light penetrates a wall [Re: Badrizmo] #326615
06/01/10 20:12
06/01/10 20:12
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
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.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Dynamic spot light penetrates a wall [Re: alibaba] #326650
06/02/10 04:02
06/02/10 04:02
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
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.

Re: Dynamic spot light penetrates a wall [Re: Badrizmo] #326765
06/02/10 19:13
06/02/10 19:13
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
may need to adjust your shadow_threshold

or your map ambient lighting levels


Last edited by Grimber; 06/02/10 19:15.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1