Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
stencil blur does not work - SOLVED #480292
05/30/20 11:14
05/30/20 11:14
Joined: Mar 2018
Posts: 15
N
NicolaB Offline OP
Newbie
NicolaB  Offline OP
Newbie
N

Joined: Mar 2018
Posts: 15
Hello,
After adding stencil_blur(1); the shaodws disapear completely.

#include <mtlView.c>

in function main i added those lines:

shadow_stencil = 2;
stencil_blur(1); // blur the shadows using the built-in Poisson shader

and in the Players Action i set the shadow.

As soon as i delete stencil_blur(1W; i have the shadow back, but not blured as i would like to have.
Whats wrong?

Last edited by NicolaB; 05/30/20 12:14.
Re: stencil blur does not work [Re: NicolaB] #480294
05/30/20 12:13
05/30/20 12:13
Joined: Mar 2018
Posts: 15
N
NicolaB Offline OP
Newbie
NicolaB  Offline OP
Newbie
N

Joined: Mar 2018
Posts: 15
PROBLEM SOLVED i have to set everything in the right order:
….
video_switch(12,0,1);
d3d_autotransparency = 1;
camera.clip_near = 10; // 2 stop camera clipping to world at close range
doppler_factor = 2;
//NOW SHADOW VARS
shadow_stencil = 2;
shadow_lod = 1; // use the second LOD stage for stencil shadows
stencil_blur(1); // activate blurred shadows

level_load…..


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