Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
dynamic shadow question #129626
05/13/07 12:05
05/13/07 12:05
Joined: Dec 2004
Posts: 237
H
Hani Offline OP
Member
Hani  Offline OP
Member
H

Joined: Dec 2004
Posts: 237
hi,
I've noticed that then entities shadows are calculated depending on the sun
direction , regardless of the entity position ,
I mean the entities are still casting shadows event if they are inside a house (sub level house),
If that’s right then I have to manually switch off the entity shadow (my.shadow = off) every time the entity goes inside the house , then turn it back on when he go out again ?

thanks


The deference between madness and geniuses is success
Re: dynamic shadow question [Re: Hani] #129627
05/13/07 12:12
05/13/07 12:12
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
correct.

Re: dynamic shadow question [Re: Joey] #129628
05/13/07 15:00
05/13/07 15:00
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
Stencil shadows can also be influenced by dynamic lights if you set the cast flag for the light appropriately. If the interior contains dynamic lights, they could influence it instead.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: dynamic shadow question [Re: Orange Brat] #129629
05/14/07 11:12
05/14/07 11:12
Joined: Dec 2004
Posts: 237
H
Hani Offline OP
Member
Hani  Offline OP
Member
H

Joined: Dec 2004
Posts: 237
then if I had a terrain that got some dungeons down in it ,
the dungeons has static and dynamic lights , the only way to do shadows right - I mean when he is on the terrain , its shadow is drown depending on the sun pos, and when he get down to the dungeons, its shadow is drown depending on the static and dynamic lights -
is by using shaders, right ?


The deference between madness and geniuses is success
Re: dynamic shadow question [Re: Hani] #129630
05/14/07 11:34
05/14/07 11:34
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
You don't have to use shaders for the shadows unless you want advanced, modern effects like those offered by the Sphere plugin. Standard dynamic lights can change the orientation of the dynamic shadow if the light's cast flag is set to on. As long as the player is standing inside the dynamic light's lightrange, the shadow will react to the position of the light.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: dynamic shadow question [Re: Orange Brat] #129631
05/15/07 09:21
05/15/07 09:21
Joined: Dec 2004
Posts: 237
H
Hani Offline OP
Member
Hani  Offline OP
Member
H

Joined: Dec 2004
Posts: 237
when i add fog, the Stencil shadows didn't affected, the shadow is still visible, how can i fix this ?


The deference between madness and geniuses is success
Re: dynamic shadow question [Re: Hani] #129632
05/16/07 08:38
05/16/07 08:38
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
I am trying light and shadow now, but I have some problems, I read the manual and can't find any tutorial to follow.

I tried the following steps:

1. sun_light = off
2. enable shadow_stencil = on
3. add my.shadow = on in action and assigned the action to entity.
4. add another model as dynamic light and assign an action with only 1 line "my.lightrange = 500;"

Now I can see the dynamic light work but the shadow of the entity seems react to sun light.

What is my problem?

Re: dynamic shadow question [Re: Frederick_Lim] #129633
05/16/07 08:50
05/16/07 08:50
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
you forgot my.cast=on;

Re: dynamic shadow question [Re: broozar] #129634
05/16/07 09:25
05/16/07 09:25
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30...
Oh yes, after add my.cast=on in dynamic light action the entity cast shadow within the dynamic light range.

But why the entity still cast shadow when not in dynamic light range, is that the nature of sun light, if no other dynamic light the sun light will active, or the "sun_light = off" not work.


Moderated by  old_bill, Tobias 

Gamestudio download | 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