Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
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
2 registered members (7th_zorro, dr_panther), 724 guests, and 3 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_blur howto? #281909
07/29/09 11:57
07/29/09 11:57
Joined: Jul 2009
Posts: 40
E
enrike Offline OP
Newbie
enrike  Offline OP
Newbie
E

Joined: Jul 2009
Posts: 40
hi

i am pretty new to 3DGS and even newer to shaders. i have two entities one needs to cast a shadow over the second. I have seen some examples of using the stencil_blur. I am not sure how to get this to work. I include mtlView.c and mtlFX.c, then set Shadow on in both entities set(my, SHADOW); and finally in main() I set
shadow_stencil = 1;
stencil_blur(1);

how ever i dont get the shadows to work.

i guess i am missing some step but i cannot find a complete example of how to use stencil_blur()

Could it be something to do with the skins being 24 bits?

thanks!

enrike

Last edited by enrike; 07/29/09 12:03.
Re: stencil_blur howto? [Re: enrike] #281911
07/29/09 12:27
07/29/09 12:27
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
AFAIK, stencil_blur needs the latest A7 update(I dunno which A7 version that support it)... But one thing for sure, you need access to stencil_map to blur it using blur shader(like poisson or gaussian blur)...

I never know the truth since I cant grab the A7 engine... I just read it in LiteC manual though...

Re: stencil_blur howto? [Re: bart_the_13th] #281914
07/29/09 12:41
07/29/09 12:41
Joined: Jul 2009
Posts: 40
E
enrike Offline OP
Newbie
enrike  Offline OP
Newbie
E

Joined: Jul 2009
Posts: 40
i have 7.21.0

i am very confussed because i have been doing many tests copying from examples and now i get this funny situation where i can get the blur but only if i include this in my code

MATERIAL* mat = {}
VIEW* v2 = {material = mat;}
VIEW* v3 =
{
flags = VISIBLE;
stage = v2;
}

this is ridiculous isnt it?

thanks for the tip about stencil_map i am going to look into it

Re: stencil_blur howto? [Re: enrike] #281982
07/29/09 18:58
07/29/09 18:58
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Update to 7.77.4 (btw. you should always use the latest version).

Last edited by Dark_samurai; 07/29/09 19:00.

ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version

Moderated by  Blink, Hummel, Superku 

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