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
0 registered members (), 16,302 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
Entity casts itself as a shadow at itself #235828
11/10/08 13:06
11/10/08 13:06
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
I think the stencil shadow has a bug. I have a stretched mdl cube as the ground and two small mdl reference objects aside. All objects have the Shadow flag on, and i have shadow_stencil = 2 in my main.c

When i run the project the groundcube casts itself as a shadow at itself. It is just visible from the angle of the lightsource. But nevertheless very disturbing.

Here the testfile, 200 Kb.

http://reinerstileset.4players.de/ext/3dgs/selfshadowing.zip

And the picture to show what i mean:




trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Entity casts itself as a shadow at itself [Re: Tiles] #235840
11/10/08 14:11
11/10/08 14:11
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I believe it's not the groundcube shadow, but the shadow from the cap of the shadow volume that you're seeing here. It's not visible in a normal scene, but can be visible when you place the camera at the light position. It should go away when you use shadow_stencil = 1, which uses an uncapped volume.

I'll check if we can implement some settings for avoiding this artifact.


Re: Entity casts itself as a shadow at itself [Re: jcl] #235878
11/10/08 17:41
11/10/08 17:41
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
Thanks JCL smile

Hmm, i cannot walk into shadows anymore with shadow_stencil = 1; without being in trouble. I need shadow_stencil = 2; for that. So that`s unfortunately this workaround out smile

It has become very visible in a normal scene. Inside a shadow it inverts. Outside a shadow i can see the whole groundmesh as a little shadow. That's why i invested some time here to create a reproduceable result.



Avoiding this artifact would be really great smile

Last edited by Tiles; 11/10/08 17:41.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de

Moderated by  jcl, Nems, Spirit, 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