Page 1 of 1

x,y origin for trails and radial blur module

Posted: Sat Jul 14, 2018 4:21 pm
by hazardman
as per the subject title, i would like to have the ability to set the origin point for the trails and radial blur modifier as oppose to the current 0,0 (centre of screen) fixed coordinate...

for instance i could simulate a moving volumetric light moving behind an object...a negative distance on the radialblur would blur towards the x,y coordinate like a vanishing point...

would also make some interesting effects linking the x/y ;)

Re: x,y origin for trails and radial blur module

Posted: Fri Oct 05, 2018 1:23 pm
by artnik
Hey hazardman,

I made an update to the Radial Blur Jittered ISF here: https://www.interactiveshaderformat.com/sketches/1359 (not my work, just a tweak.)

It will address one of your requests, allowing for things like simulating a light shining through a logo. The range of motion on the x,y origin is -3.0 to 3.0, letting you move the origin far enough off screen that the rays don't show up, letting you animate them in.

Cheers!

Re: x,y origin for trails and radial blur module

Posted: Tue Oct 09, 2018 2:03 am
by hazardman
thanks!..will play with it...any chance you know if the the original code is ok to use commercially?.. i find that a lot of the sites that offer ISF/GLSL shaders are mostly for private/non-commercial use...

Re: x,y origin for trails and radial blur module

Posted: Tue Oct 09, 2018 2:08 pm
by artnik
The comments in the code indicate it's a port of a shader from http://www.SHADERTOY.COM. Unless otherwise stated shaders there are under a default CC-Attribution-NonCommercial-Sharealike 3.0 license. (https://www.shadertoy.com/terms)

You can always try and contact the original authour for permission: https://www.shadertoy.com/view/XsKGRW