Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 645 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Stencil Shadow Help Plz #76343
06/01/06 10:40
06/01/06 10:40
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
Can someone point me in the right direction plz, I am having some probs with stencil shadows. Here are two screen shots to show the problem I am experiencing:





Hopefully you can see the problem. In the first shot you can see the stencil shadow, but as I move the camera up a little, the shadow vanishes. I've tried moving the models origin around to no avail.

Any help gratefully appreciated. TIA


The Art of Conversation is dead : Discuss
Re: Stencil Shadow Help Plz [Re: indiGLOW] #76344
06/01/06 18:19
06/01/06 18:19
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
anyone?


The Art of Conversation is dead : Discuss
Re: Stencil Shadow Help Plz [Re: indiGLOW] #76345
06/01/06 18:29
06/01/06 18:29
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
I recall something very similar happening in my 3D game roughly 10 months ago when I last did anything considerable to it. It's not just camera height, but it happens at any angle as well. The fix is what I don't know.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Stencil Shadow Help Plz [Re: ulillillia] #76346
06/01/06 18:31
06/01/06 18:31
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
I noticed it several times before Ulillillia, It seems to be caused by the shadows being listed as no longer visible, some kind of origin of the shadow or similiar.

I've had a good scan through the manual and couldn't find anything about it, other than turning stencil on/off.

Maybe I should raise it in the Ask Conitec thread....

Edit: Thanks for replying, at least I know I am not loosing my marbles here

Last edited by indiGLOW; 06/01/06 18:31.

The Art of Conversation is dead : Discuss
Re: Stencil Shadow Help Plz [Re: indiGLOW] #76347
06/01/06 18:31
06/01/06 18:31
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
As far as I know this is 3DGS's especially outdated, to an almost unbelievable extent useless and, after all, damn slow stencil algorithm.
I don't exactly know how they work - however this has nothing to do with the models origin I think. The only way to "workaround" this problem is to have the camera at a greater distance to the model and -if possible- not looking at it from the direction the shadow falls to.
JCL once stated that a new, faster algorithm was to be implemented in future versions, but for the moment you'll have to stay with things as they are, I'm afraid...

EDIT: Hey that was someone faster than me again

Last edited by The Matrix; 06/01/06 18:33.

Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Stencil Shadow Help Plz [Re: Thomas_Nitschke] #76348
06/01/06 18:36
06/01/06 18:36
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
It seems to happen at any distance. In my case, I wasn't even using stencil shadows (open mesh - won't work). It's ten months ago so I don't recall that well. Also, if you get the camera in the area of the shadow, the surroundings become darkened as well, even though they aren't affected by the light - the entire scene is affected.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Stencil Shadow Help Plz [Re: ulillillia] #76349
06/01/06 18:38
06/01/06 18:38
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Quote:

Also, if you get the camera in the area of the shadow, the surroundings become darkened as well, even though they aren't affected by the light - the entire scene is affected.




Yep, this is what I was talking about. This happens whenever the camera gets too close to the shadow volume AFAIK. The effect you describe is what happens when the camera is actually _inside_ the shadow volume: the shadows get inversed. If the camera is too close to but not inside the shadow volume, the shadow usually just disappears as described by Indiglow.
Still, I don't think there's a workaround for this problem yet.


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Stencil Shadow Help Plz [Re: Thomas_Nitschke] #76350
06/01/06 18:57
06/01/06 18:57
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
As much as I appreciate your feedback on this matter Matrix, I don't think this IS the problem, as this can be observed without moving the camera closer / or further from the shadow.

Please take a look at the small demo here: Downloads - Showcase Alpha

You will see, as you move the camera upwards, the shadow pops in and out, depending on the angle.

Note: WASD & Right Mouse Click (Although the click is just for aiming)


The Art of Conversation is dead : Discuss
Re: Stencil Shadow Help Plz [Re: indiGLOW] #76351
06/01/06 19:28
06/01/06 19:28
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
I see. However I'm pretty sure that, actually, this is exactly what I'm talking about. I can't explain it any better since I have no real idea of how stencil shadows work, but I think the shadow volume is often quite big and interferes with the camera volume even where you wouldn't think of it. Whatsoever, this is just what my experiences with stencils are able to tell me. Probably you should indeed ask Conitec since they're probably the only ones who can provide you with a reliable answer.

EDIT: Here's another possibility that just came to my mind... Since, in your demo, the stencil shadow disappears if the figure's feet are close to the bottom of the screen, I thought probably the culling process could also be involved here? That is, probably the shadow is being generated from an internal copy of your model that, for some reason, gets clipped earlier than its visible pendant - for "performance reasons" or whatever

Last edited by The Matrix; 06/01/06 19:33.

Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Stencil Shadow Help Plz [Re: Thomas_Nitschke] #76352
06/01/06 19:35
06/01/06 19:35
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
I recall it happening with my platforms in my 3D game with no regard to where it is located on the screen, even the top, far left, center, anywhere.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Page 1 of 3 1 2 3

Moderated by  HeelX, Spirit 

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