Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (SBGuy, Quad), 768 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Soft Shadows #73983
05/12/06 16:29
05/12/06 16:29
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline OP
Developer
xoNoid  Offline OP
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
When are we going to get proper softshadows like in Half-Life 2 or something like that. It would even be ok if you could give access to the shadow buffer then people could code their own shadow solutions.

Re: Soft Shadows [Re: xoNoid] #73984
05/12/06 17:00
05/12/06 17:00
Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Damarus Offline
Member
Damarus  Offline
Member

Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
isn't there already a softshadow code on one of the Aum Magazines?

Re: Soft Shadows [Re: Damarus] #73985
05/12/06 18:04
05/12/06 18:04
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline OP
Developer
xoNoid  Offline OP
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
Yes there is but it does not bend around corners like proper stencil shadows. And I'm not interested in using Sphere either. Some of us like our level blocks too much

Re: Soft Shadows [Re: xoNoid] #73986
05/16/06 14:13
05/16/06 14:13
Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
Damarus Offline
Member
Damarus  Offline
Member

Joined: Apr 2004
Posts: 258
Canada, Nova Scotia
yes but stencil shadows is pretty slow i think. And i think i can't really help by this I'm not really familiar with programming.

Re: Soft Shadows [Re: Damarus] #73987
05/29/06 07:47
05/29/06 07:47
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
i thought projected shadows were the way to go for this. stencil shadows aren't a huge issue in terms of speed, but they are as sharp as shadows get. you'll need projected shadows (which half-life2 uses, im pretty sure), but they'll probably be slow on level geometry. i'm no shader guru however, and i'm sure there would be some way for conitec to give a6 some native support that won't suffer as much from the shortcomings of mixing level blocks and shaders.

my thoughts that hl2's shadows are projected are based on the fact that if the model's bounding box gets too close to a wall the edges of the shadow bend up to a point closer to the light source than the actual model (implying that the shadows are projected from another position) and that the shadows are quite pixelated if you look carefully. please correct me if i'm wrong.

any thoughts, conitec?

JulzMighty


Formerly known as JulzMighty.
I made KarBOOM!
Re: Soft Shadows [Re: JibbSmart] #73988
05/29/06 10:44
05/29/06 10:44
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline OP
Developer
xoNoid  Offline OP
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
I thought that the shadows in Half Life 2 were only softened (and softened quite poorly) stencil shadows?

Re: Soft Shadows [Re: xoNoid] #73989
05/29/06 23:29
05/29/06 23:29
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Quote:

if the model's bounding box gets too close to a wall the edges of the shadow bend up to a point closer to the light source than the actual model



i've never seen these problems occur with stencil shadows. also, stencil shadows are independent of the textures they are cast on (that's why in games like Riddick on XBox the shadows are sharper than the wall/floor textures behind them). this makes it difficult and maybe impossible to do softening effects on the stencil shadow whilst maintaining scale and perspective. i'm sure an effect could be written to blur the shadows on-screen but like i just said it would be very difficult to take perspective and distance into account to make them look realistic.

i'm no expert on stencil shadows and especially not shaders so that's just what i thought based on different things i've seen and heard.

JulzMighty


Formerly known as JulzMighty.
I made KarBOOM!
Re: Soft Shadows [Re: JibbSmart] #73990
06/01/06 07:31
06/01/06 07:31
Joined: Jan 2003
Posts: 71
central US
yung Offline
Junior Member
yung  Offline
Junior Member

Joined: Jan 2003
Posts: 71
central US
Did you know:
you can make your own stencil shadow code, since it is only projected on one plane at a time, not multiple surfaces, using models no less. Simply using an all black skin+ transparent/alpha, angle the model and squash it to the plane.
Somewhat difficult, but once achieved, a shader could easily soften it, and there would be no limit to the number of shadows you wanted from multiple light sources, or multiple surfaces.This idea came to me back when churning out garbage with A5 stadard, that did not support stencil shadows.

Re: Soft Shadows [Re: yung] #73991
06/02/06 06:04
06/02/06 06:04
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
that could work but they aren't actually stencil shadows, as stencil shadows bend around corners and are visible on any polygon in its way that is set to receive shadows.
still, did you get it to work? it would be nice to see.

JulzMighty


Formerly known as JulzMighty.
I made KarBOOM!
Re: Soft Shadows [Re: JibbSmart] #73992
06/02/06 17:35
06/02/06 17:35
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline OP
Developer
xoNoid  Offline OP
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
@vung I think someone tried this approch at some point. The main problem is that you get a poor result (as your limited to the number of vertexes in the model you are using) and it's not exactly fast...

EDIT: I think how the shadows are handled in sphear would be the way to go in gamestudio or even in a game like Halo the shadows look quite nice! and it uses no shaders!

Last edited by xoNoid; 06/02/06 17:36.
Page 1 of 2 1 2

Moderated by  aztec, 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