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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
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 | 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