Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: ArcadeBliss on May 10, 2016, 02:15:07 AM

Title: Gaussian Blur shader effect
Post by: ArcadeBliss on May 10, 2016, 02:15:07 AM
I am trying to do a gaussian blur effect that requires to run the shader twice on the resulting image. Does anyone have a clue how to place the resulting image of an fe.image object that has a shader into another fe.image inorder to run the other shader against it?
Title: Re: Gaussian Blur shader effect
Post by: liquid8d on May 10, 2016, 03:31:24 PM
I'm not the best to explain shaders.. ideally the shader would run two passes i think or you would combine two separate shaders into one - but that's too complicated for me :)

Have you tried just doing the first shader on the image, then adding image to a surface and applying the second to the surface? I'm not sure if that would give the same effect, though.
Title: Re: Gaussian Blur shader effect
Post by: ArcadeBliss on May 10, 2016, 09:04:59 PM
I'll give that a try.  Good idea.
Title: Re: Gaussian Blur shader effect
Post by: ArcadeBliss on May 11, 2016, 03:04:43 AM
it worked!

I created a surface and gave it a shader.
I created an fe.image in the surface and gave it a shader.

after that it worked like a charm!