stencil_blur howto?

Posted By: enrike

stencil_blur howto? - 07/29/09 11:57

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
Posted By: bart_the_13th

Re: stencil_blur howto? - 07/29/09 12:27

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...
Posted By: enrike

Re: stencil_blur howto? - 07/29/09 12:41

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
Posted By: Dark_samurai

Re: stencil_blur howto? - 07/29/09 18:58

Update to 7.77.4 (btw. you should always use the latest version).
© 2024 lite-C Forums