<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Use, format RGB32 instead of RGB for your framebufers.</div><div>++</div><div><br></div><div><div style="font-size:100%">Jack</div></div> <br>Py Fave &lt;pyfave@gmail.com&gt; a écrit :<br>first thanks both for your help.<br>i was tired yesterday evening.<br><br>jack , i have a problem with your patch.<br>i had already similar problems before, that's why i wanted to use some<br>shader in the feedback chain .<br><br>it works ok BUT with very long feedback ( 0.999 alpha ) values i get a<br> ghost image,<br>the point never diseappears( because perhaps of a bad approximation in<br>opengl ) .<br>ie : color 1 1 1 0.995<br>leaves traces<br>is that a problem with&nbsp; my graphics card ? i don't think so .<br>i join a clumsy correction test , with makes things flicker a bit too much .<br>do you have a better workaround?<br><br><br><br>2013/10/2 Jack &lt;jack@rybn.org&gt;:<br>&gt; Le 02/10/2013 20:10, Py Fave a écrit :<br>&gt;&gt; Hello list ,<br>&gt;&gt;<br>&gt;&gt; i'm currently trying to understand a bit more glsl ,<br>&gt;&gt; and am tearing my hairs<br>&gt;&gt;<br>&gt;&gt; i have a scene with some&nbsp; moving geometry (torus)<br>&gt;&gt; on this&nbsp; geometry i use successfully a simple shader to plot a moving circle.<br>&gt;&gt;<br>&gt;&gt; Then<br>&gt;&gt; i try to make the classical feedback effect , but i need to use glsl<br>&gt;&gt; because i want to control precisely the adding of the image at time<br>&gt;&gt; and at time+1<br>&gt;&gt;<br>&gt;&gt; here is the feedback shader i try to use .<br>&gt;&gt; ----<br>&gt;&gt; uniform sampler2D tex1,tex2;<br>&gt;&gt; uniform float motionblurstrenght;<br>&gt;&gt; vec2 coord = gl_TexCoord[0].st;<br>&gt;&gt; void main()<br>&gt;&gt; {<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; vec4 t1 = texture(tex1, coord);//new frame<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; vec4 t2 = texture(tex2, coord);//acumulated frame<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; gl_FragColor = vec4(t1.r);<br>&gt;&gt;&nbsp;&nbsp;&nbsp; float r = ((1.-motionblurstrenght)*t2.r) + (t1.r);//motion blur<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gl_FragColor = vec4(r);<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&gt; ----------------------<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; do you have a clean example or hints on how to implement this ?<br>&gt;&gt; i am currently fighting&nbsp; with gemframebuffer and pix_texture<br>&gt;&gt; and&nbsp; rendering order and texunits .<br>&gt;&gt; and i feel i'm missing something ..<br>&gt;&gt;<br>&gt;&gt; i would like , if possible to keep this as an effect i can turn on and<br>&gt;&gt; off&nbsp; , without modifing my current gem chains .<br>&gt;&gt;<br>&gt;&gt; i think i need two gem chains ,one early and one at last in the frame<br>&gt;&gt; drawing chronology , but i can't make it though i tried a lot<br>&gt;&gt;<br>&gt;&gt; any help appreciated .<br>&gt;&gt;<br>&gt;&gt; Pierre-Yves<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Pd-list@iem.at mailing list<br>&gt;&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br>&gt;<br>&gt; This example could help, see attached.<br>&gt; ++<br>&gt;<br>&gt; Jack<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Pd-list@iem.at mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br>&gt;<br> </body>