Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (steyr, alibaba), 534 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 kind of shadows possible? #275724
07/02/09 08:53
07/02/09 08:53

C
chris_oat
Unregistered
chris_oat
Unregistered
C



hi all there,

just a short question: i use stencil shadows in my game, mostly for static object like barrels and so on.
and now i want to ask, if it is possible to give the player a other kind of shadow, bcs i would need the old shadow, that is always in the same direction no matter if influenced by dynmaic light. i think it was called z-fail shadow?!
thanks!

Re: 2 kind of shadows possible? [Re: ] #275727
07/02/09 08:56
07/02/09 08:56
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Quote:
same direction no matter

that would be the sun-shadow

Re: 2 kind of shadows possible? [Re: the_mehmaster] #275731
07/02/09 09:01
07/02/09 09:01

C
chris_oat
Unregistered
chris_oat
Unregistered
C



Originally Posted By: the_mehmaster
Quote:
same direction no matter

that would be the sun-shadow

yes. can i use for objects stencil shadows, and for my player model, the sun-shadow?

Last edited by chris_oat; 07/02/09 09:01.
Re: 2 kind of shadows possible? [Re: ] #276461
07/05/09 07:03
07/05/09 07:03
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Why not using decal shadow for static object and stencil shadow for the player?

Re: 2 kind of shadows possible? [Re: bart_the_13th] #276504
07/05/09 12:27
07/05/09 12:27
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
I guess you mean, how can you use decal shadows while the shencil shadows are on. Simple!! laugh smile

First, define the shadow image as an entity, Example:
Code:
ENTITY* dede_shadee = {type = mr_shadow.tga; flags = SHOW;}


Second, put this line in the entity's action:
Code:
my.shadow = dede_shadee; //replace dede_shadee by your entity's name



Re: 2 kind of shadows possible? [Re: Cowabanga] #276768
07/06/09 10:34
07/06/09 10:34

C
chris_oat
Unregistered
chris_oat
Unregistered
C



well, but i dont wanna use decal shadow, bcs i need shadow that stil "move" e.g. for the player if he walk etc.
hard to explain, but i mean the old shadows, i think it was A6 the "fake" ones.

Re: 2 kind of shadows possible? [Re: ] #276769
07/06/09 10:37
07/06/09 10:37
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Ah, you mean Z-Buffer?? If yes, that's impossible.

Re: 2 kind of shadows possible? [Re: Cowabanga] #276770
07/06/09 10:37
07/06/09 10:37

C
chris_oat
Unregistered
chris_oat
Unregistered
C



YES smile how?

ops. sorry, i read wrong, i first read its possible. but it seems to be impossible.

Last edited by chris_oat; 07/06/09 10:39.

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