Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
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
1 registered members (Nymphodora), 490 guests, and 7 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
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