Hi list,
I have a simple patch that plays a film with pix_movie, with a rotateXYZ to rotate it clockwise or counterclockwise on screen.
Now I want to add motion blur in the rotating effect.
Just adding pix_motionblur to the chain does not work, because it blurs the movie images but not with respect to the rotation.
I understand it's problably because pix_motionblur comes into play before the film is made into a texture and that rotateXYZ applies to the geo the texture is on.
So what's a nice way to have motionblur applied to the rotation ?
It seems there glsl and pdp examples for that but I don't understand them (I never used these libraries).
Thanks,
Le 14/12/2012 15:42, Charles Goyard a écrit :
Hi list,
I have a simple patch that plays a film with pix_movie, with a rotateXYZ to rotate it clockwise or counterclockwise on screen.
Now I want to add motion blur in the rotating effect.
Just adding pix_motionblur to the chain does not work, because it blurs the movie images but not with respect to the rotation.
I understand it's problably because pix_motionblur comes into play before the film is made into a texture and that rotateXYZ applies to the geo the texture is on.
So what's a nice way to have motionblur applied to the rotation ?
render in a framebuffer and use this image for the motionblur.
It seems there glsl and pdp examples for that but I don't understand them (I never used these libraries).
yes, glsl can help a lot.
you can use example : 10.glsl/14.blur, remove sceneA and sceneB in order to add : rotateXYZ pix_image pix_texture rectangle
it should work. cheers c
Thanks,
Hi Cyrille,
render in a framebuffer and use this image for the motionblur.
That's what I tried without success.
Here's a simplified patch (with a single image instead of movie) showing the situation.
Rotation should exhibit some blurring, isn't it ?
Maybe there's smehting I need to setup ? Like alpha or whatso ?
Thanks a lot,
I think the issue might be that [pix_motionblur] works with images, not textures. Therefore you need to change your rotated texture into an image, then blur that. I modified your patch to do this. See if it does what you want (attached).
-John
On Sat, Dec 15, 2012 at 2:16 AM, Charles Goyard cg@fsck.fr wrote:
Hi Cyrille,
render in a framebuffer and use this image for the motionblur.
That's what I tried without success.
Here's a simplified patch (with a single image instead of movie) showing the situation.
Rotation should exhibit some blurring, isn't it ?
Maybe there's smehting I need to setup ? Like alpha or whatso ?
Thanks a lot,
-- Charles
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 15/12/2012 15:59, John Harrison a écrit :
I think the issue might be that [pix_motionblur] works with images, not textures. Therefore you need to change your rotated texture into an image, then blur that. I modified your patch to do this. See if it does what you want (attached).
-John
On Sat, Dec 15, 2012 at 2:16 AM, Charles Goyard <cg@fsck.fr mailto:cg@fsck.fr> wrote:
Hi Cyrille, > render in a framebuffer and use this image for the motionblur. That's what I tried without success. Here's a simplified patch (with a single image instead of movie) showing the situation. Rotation should exhibit some blurring, isn't it ? Maybe there's smehting I need to setup ? Like alpha or whatso ? Thanks a lot, -- Charles _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hello,
I think, it is better to work (only) with textures and framebuffers (this is faster). See the patch attached. If you need absolutely [pix_motionblur], then the John's solution is good. ++
Jack
Hi all,
I think the issue might be that [pix_motionblur] works with images, not textures. Therefore you need to change your rotated texture into an image, then blur that. I modified your patch to do this. See if it does what you want (attached).
Hello,
I think, it is better to work (only) with textures and framebuffers (this is faster). See the patch attached. If you need absolutely [pix_motionblur], then the John's solution is good.
Cyrille sent me two patches that show both ways this morning, but by private mail. They really look similar to the ones you sent :).
Using pix_snap is way too slow (98%cpu versus 18% with opengl blending).
Thanks to all,