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
2 registered members (AndrewAMD, TipmyPip), 12,709 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
Stencil Shadow Problem #138954
06/30/07 18:34
06/30/07 18:34
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Hi everyone,

I've just started experimenting with stencil shadows, and I've run into a problem. I did a forum search and couldn't find anything, so if this has already been covered, then I apologize.

I have a few entities on top of a block-based table in a block-based level. I turned on the entities' shadows, using stencil shadows. The shadows themselves project perfectly...however, they project on the table top, and also on the floor directly below the table, hence the problem. It's as though the engine, in addition to projecting shadows onto the table, also projects the shadow onto the floor, as if the table isn't there. I emphasize that the table and floor are both blocks.

Do any of you have any idea why there would be two identical sets of shadows projected? Is it a problem with the table block being too thin? I tried increasing the size a bit, but it didn't help.

Thanks in advance for your help!

Re: Stencil Shadow Problem [Re: CBSection31] #138955
06/30/07 18:37
06/30/07 18:37
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
It's engine bug if I remember corectly
the same is with walls... stencil shadow will be on the wall but on the ground behind the wall also

Last edited by tompo; 06/30/07 18:38.

Never say never.
Re: Stencil Shadow Problem [Re: tompo] #138956
06/30/07 18:50
06/30/07 18:50
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Did you set?:
var shadow_stencil = on;

warning: setting "var shadow_stencil = on;" enable stencil shadows which may look better than z-buffer shadows but eat some performance too.

Last edited by Xarthor; 06/30/07 18:51.
Re: Stencil Shadow Problem [Re: Xarthor] #138957
06/30/07 19:52
06/30/07 19:52
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Stencil shadows go through all objects/blocks/etc...

They are infinitly projected...


xXxGuitar511
- Programmer
Re: Stencil Shadow Problem [Re: xXxGuitar511] #138958
06/30/07 21:07
06/30/07 21:07
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Ah...drat. I wish there was a way to individually use either stencil shadows or z-buffer shadows on an entity-by-entity basis.

Re: Stencil Shadow Problem [Re: CBSection31] #138959
07/01/07 05:55
07/01/07 05:55
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Quote:

It's engine bug if I remember corectly




Its not a bug, this is the natural behavior of stencil shadows.. the way to prevent this is to make the table a model and have it cast a shadow too.


Sphere Engine--the premier A6 graphics plugin.

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