Gamestudio Links
Zorro Links
Newest Posts
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 (7th_zorro), 1,390 guests, and 2 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
stencil shadow problem #282876
08/04/09 12:47
08/04/09 12:47
Joined: Jun 2009
Posts: 14
Scotland/India
N
noobeez Offline OP
Newbie
noobeez  Offline OP
Newbie
N

Joined: Jun 2009
Posts: 14
Scotland/India
Im facing a problem while using stencil shadows for a ball.The shadow is cast on multiple objects at the same time.There is only one source of light(sun).

for shadows im using the following code.

set(ball,SHADOW|POLYGON|CAST);

Checkout the following screenshot.




Team noobeez.Representing India at the Dare to be Digital Competition in Dundee,Scotland.We are making a 3d platformer called "Colour Scheme".
Re: stencil shadow problem [Re: noobeez] #282879
08/04/09 13:07
08/04/09 13:07
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
"Stencil shadows are not clipped by walls.
A shadow can be cast on a wall, at the back side of the wall,
and on the floor behind the wall at the same time."

http://www.conitec.net/beta/shadow_stencil.htm





no science involved
Re: stencil shadow problem [Re: noobeez] #282880
08/04/09 13:12
08/04/09 13:12
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
I found this in another engine tutorial:

Objects receiving shadows should cast shadows themselves. Consider the following case:



When a caster mesh is provided for both the ball and the wall (left), the visual effect is always proper. But when a caster isn't provided for the wall (right), chances are that the ball shadow is also cast on the dark side of a the wall. It also isn't properly cast onto the ground either.


Models, Textures and Games from Dexsoft
Re: stencil shadow problem [Re: fogman] #282881
08/04/09 13:14
08/04/09 13:14
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Originally Posted By: fogman
"Stencil shadows are not clipped by walls.


This counts probably only for blocks. A wall made from a mesh casting shadows itself will not have this (visual) problem. Though it still will not actually clip the shadow. But the shadows of the wall and of the ball will merge just fine.


Models, Textures and Games from Dexsoft

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