<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ofelia GLSL Video Effects]]></title><description><![CDATA[<p>Hello <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /><br />
This is the first version of the GLSLVideoEffects patch. It is made with the Ofelia library.<br />
It creates an effect chain of three GLSL shaders.<br />
The effects are mainly adaptions from existing shaders.<br />
It started as a technical issue, but I think it is a patch on its own now...<br />
I tried to make it easy to change or substitute GLSL effects or to expand the patch.<br />
I have some further ideas, but this is the basic concept.<br />
The interface makes also use of the new &quot;coords&quot; message for canvas positions, which works very well.</p>
<p><a href="/uploads/files/1562677048133-glsl_video_effects_v01.zip">GLSL_Video_Effects_V01.zip</a></p>
<p><img src="/uploads/files/1562514947342-glslvideomixerv01x.png" alt="GLSLVideoMixerV01x.PNG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 15:43:27 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12152.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Jul 2019 15:48:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 09 Jul 2019 12:57:52 GMT]]></title><description><![CDATA[<p>Hello <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /><br />
This is the first version of the GLSLVideoEffects patch. It is made with the Ofelia library.<br />
It creates an effect chain of three GLSL shaders.<br />
The effects are mainly adaptions from existing shaders.<br />
It started as a technical issue, but I think it is a patch on its own now...<br />
I tried to make it easy to change or substitute GLSL effects or to expand the patch.<br />
I have some further ideas, but this is the basic concept.<br />
The interface makes also use of the new &quot;coords&quot; message for canvas positions, which works very well.</p>
<p><a href="/uploads/files/1562677048133-glsl_video_effects_v01.zip">GLSL_Video_Effects_V01.zip</a></p>
<p><img src="/uploads/files/1562514947342-glslvideomixerv01x.png" alt="GLSLVideoMixerV01x.PNG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects</guid><dc:creator><![CDATA[Jona]]></dc:creator><pubDate>Tue, 09 Jul 2019 12:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 09 Jul 2019 12:40:28 GMT]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jona">@Jona</a>! I would like to try your patch, but it does not show me any video. Maybe i miss fundamental things i should do? I open a file but still nothing. I have no experience with ofelia, but the video example works with the same video. Console gives me this:</p>
<p>ofelia: [string &quot;package.preload['1003-video1'] = nil package....&quot;]:4: attempt to call a nil value (global 'ofWindow')<br />
ofelia: [string &quot;package.preload['1003-video1'] = nil package....&quot;]:4: attempt to call a nil value (global 'ofWindow')<br />
ofelia: [string &quot;package.preload['1003-video1'] = nil package....&quot;]:4: attempt to call a nil value (global 'ofWindow')<br />
ofelia: [string &quot;package.preload['1003-video1'] = nil package....&quot;]:4: attempt to call a nil value (global 'ofWindow')</p>
<p>anybody understands what i'm doing wrong?</p>
<p>EDIT: somehow it is not opening the playback window.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/2</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Tue, 09 Jul 2019 12:40:28 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 09 Jul 2019 13:48:05 GMT]]></title><description><![CDATA[<p>Hi  <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a>.<br />
If it does not find ofWindow it can not open the playback window.<br />
I would try to install the newest Ofelia version from Deken,<br />
There were some changes (like pdSysGui) so that newer patches can not run on older versions anymore (depending on what is used).<br />
Perhaps also install the newest PD version because of the coords message?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/3</guid><dc:creator><![CDATA[Jona]]></dc:creator><pubDate>Tue, 09 Jul 2019 13:48:05 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 09 Jul 2019 20:42:17 GMT]]></title><description><![CDATA[<p>Thx for the fast reply! Will try that when back at the computer and edit this reply.<br />
EDIT: Jarrrr it works with the newest ofelia from deken!! very cool!!! Thank you! but most of the shaders are not working. No problem for me, as i was just testing. If I have time, i will look into this further. I use OSX 10.11.6.<br />
Effects that work: Angle, Bokeh, FractTexture.<br />
To make it work here it looks like i would have to tweek the shader code. Maybe there is some OS dependend stuff?<br />
Console gives (e.g. for AsciiArt):</p>
<p>ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile<br />
: ofShader: GL_FRAGMENT_SHADER shader reports:<br />
ERROR: 0:1: '&lt;' : syntax error: syntax error</p>
<p>: ofShader: GL_FRAGMENT_SHADER, offending line 1 :<br />
1   ﻿//fragment program<br />
2<br />
3   uniform sampler2D Tex0;</p>
<p>ofShader: checkProgramLinkStatus(): program failed to link<br />
ofShader: ofShader: program reports:<br />
ERROR: One or more attached shaders not successfully compiled</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/4</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Tue, 09 Jul 2019 20:42:17 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Wed, 10 Jul 2019 14:59:53 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> nice that it works. but strange that some effects do not work, i thought they are os independent.<br />
but line one is just a comment (everything with // in the beginning). you can just delete it perhaps.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/5</guid><dc:creator><![CDATA[Jona]]></dc:creator><pubDate>Wed, 10 Jul 2019 14:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Mon, 19 Aug 2019 15:51:11 GMT]]></title><description><![CDATA[<p>I updated the patch for Ofelia v3: <a href="/uploads/files/1566228943085-glsl_video_effects_v01_ofelia3.zip">GLSL_Video_Effects_V01_Ofelia3.zip</a><br />
<a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/cuinjune">@cuinjune</a> somehow the patch only works with Ofelia 3 if I call the module variable M with a name different than M (in my case &quot;m&quot;).<br />
this works:</p>
<pre><code>local m = require(&quot;$0-video1&quot;);
</code></pre>
<p>and this does not work:</p>
<pre><code>local M = require(&quot;$0-video1&quot;);
</code></pre>
<p>I do not understand the behaviour yet because in the variable example I can still use</p>
<pre><code>local M = require(&quot;$0-abc&quot;);
</code></pre>
<p>without any problem...</p>
<p>Another relating question: Is ofelia and M still the same?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/6</guid><dc:creator><![CDATA[Jona]]></dc:creator><pubDate>Mon, 19 Aug 2019 15:51:11 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 20 Aug 2019 15:11:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jona">@Jona</a> Yes, <code>M</code> is just an alias for <code>ofelia</code> module table.</p>
<p>The actual full script that runs in Lua when you create [ofelia define foo] object is like the following:</p>
<pre><code> local name = &quot;foo&quot;
 package.preload[name] = nil
 package.loaded[name] = nil
 package.preload[name] = function(this)
 local ofelia = {}
 local M = ofelia
-- Your written script will be here. 
 return M
 end
</code></pre>
<p>And sending the 'bang' message to this object will run the following script:</p>
<pre><code>local m = require(&quot;foo&quot;)
if type(m.bang) == &quot;function&quot; then
  return m:bang() -- the object will output the returned value through its outlet
end
</code></pre>
<p>I added <code>M</code> since it's easier to write and the script can be shorter. Also, <code>M</code> is commonly used in Lua as a variable name for a module table.</p>
<p>Therefore, you should not reassign anything to <code>M</code> or <code>ofelia</code> in almost any case since it can be problematic.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/7</guid><dc:creator><![CDATA[cuinjune]]></dc:creator><pubDate>Tue, 20 Aug 2019 15:11:44 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Thu, 13 Oct 2022 14:17:07 GMT]]></title><description><![CDATA[<p>I adapted the partch to ofelia v4 here.</p>
<p><a href="/uploads/files/1665670504789-glsl_video_effects_v01_ofelia4.zip">GLSL_Video_Effects_V01_Ofelia4.zip</a></p>
<p>But still, only very few shader works on my macbook (like Bokeh... and two or three more).<br />
Any way to make them all compatible?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/8</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Thu, 13 Oct 2022 14:17:07 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Sun, 23 Oct 2022 10:16:16 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> hmm. For me even the v3 version works without problems (with Windows) with Ofelia v4. And I don't think shaders need to be programmed differently for OSX. But maybe I am wrong. Maybe you need to specify the GL version in Ofelia?<br />
Btw: I updated ofxOfelia (inofficial): <a href="https://github.com/cuinjune/Ofelia/issues/78" rel="nofollow">https://github.com/cuinjune/Ofelia/issues/78</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/9</guid><dc:creator><![CDATA[Jona]]></dc:creator><pubDate>Sun, 23 Oct 2022 10:16:16 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 25 Oct 2022 10:04:58 GMT]]></title><description><![CDATA[<blockquote>
<p>or me even the v3 version works without problems (with Windows) with Ofelia v4</p>
</blockquote>
<p>Ok, strange, I found an old revision of your patch somewhere that used pdCanvas and pdClock instead of ofCanvas ofClock, and ofelia object was broken...</p>
<blockquote>
<p>Maybe you need to specify the GL version in Ofelia?</p>
</blockquote>
<p>Yes, I thought about it. I tried to change different shader version adding  window:setGLVersion(4,1) etc in setup but had a crash or nothing...<br />
Maybe I need to modify all shader and add a  version directive on top to make them working in other systems (like:   #version 410).</p>
<blockquote>
<p>I updated ofxOfelia</p>
</blockquote>
<p>Great, this is the openFrameworks addon, but I am trying to make classic ofelia work under pd for some teaching.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/10</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Tue, 25 Oct 2022 10:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 25 Oct 2022 10:05:32 GMT]]></title><description><![CDATA[<p>This is the error I have on 90% of the shader...</p>
<pre><code>ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile
: ofShader: GL_FRAGMENT_SHADER shader reports:
ERROR: 0:1: '&lt;' : syntax error: syntax error

: ofShader: GL_FRAGMENT_SHADER, offending line 1 :
        1   ﻿//fragment program
        2   
        3   uniform float Bleach_Opacity;

ofShader: checkProgramLinkStatus(): program failed to link
ofShader: ofShader: program reports:
ERROR: One or more attached shaders not successfully compiled


</code></pre>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/11</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Tue, 25 Oct 2022 10:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 25 Oct 2022 13:36:02 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> maybe just try to delete what is written in the first line of the shader?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/12</guid><dc:creator><![CDATA[Jona]]></dc:creator><pubDate>Tue, 25 Oct 2022 13:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 25 Oct 2022 16:54:42 GMT]]></title><description><![CDATA[<p>Yeah, I tried already but that's not the problem. And for example Bokeh works with the same line...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/13</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Tue, 25 Oct 2022 16:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia GLSL Video Effects on Tue, 25 Oct 2022 17:58:00 GMT]]></title><description><![CDATA[<p>I tried on a Intel Imac, same problems with same shaders.<br />
Now, I tried on a windows 10 machine... same problems again, only same 3 shaders works (like Bokeh)..</p>
<p>For bleach, the error is different from apple:</p>
<pre><code>ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile
: ofShader: GL_FRAGMENT_SHADER shader reports:
Fragment shader failed to compile with the following errors:
ERROR: error(#60) Unknown char: &quot;﻿&quot;
ERROR: error(#273) 1 compilation errors.  No code generated


: ﻿//fragment program

uniform sampler2D Tex0;
uniform float GaussianBlur_Radius;
const float total = (1. + 8. + 28. + 56.) * 2. + 70.;   
                                                      
void main(void) 
{
    vec2 st = gl_TexCoord[0].st;
    vec4 color = vec4(0.0,0.0,0.0,0.0);
    color += (1. / total) * texture2D(Tex0, st - GaussianBlur_Radius * vec2(4. / 4., 0.));
    color += (8. / total)  * texture2D(Tex0, st - GaussianBlur_Radius * vec2(3. / 4., 0.));
    color += (28. / total)  * texture2D(Tex0, st - GaussianBlur_Radius * vec2(2. / 4., 0.));
    color += (56. / total)  * texture2D(Tex0, st - GaussianBlur_Radius * vec2(1. / 4., 0.));
    color +=  (70. / total) * texture2D(Tex0, st);
    color += (1. / total) * texture2D(Tex0, st + GaussianBlur_Radius * vec2(4. / 4., 0.));
    color += (8. / total)  * texture2D(Tex0, st + GaussianBlur_Radius * vec2(3. / 4., 0.));
    color += (28. / total)  * texture2D(Tex0, st + GaussianBlur_Radius * vec2(2. / 4., 0.));
    color += (56. / total)  * texture2D(Tex0, st + GaussianBlur_Radius * vec2(1. / 4.,ofShader: checkProgramLinkStatus(): program failed to link
</code></pre>
<p>ofShader: ofShader: program reports:<br />
Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12152/ofelia-glsl-video-effects/14</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Tue, 25 Oct 2022 17:58:00 GMT</pubDate></item></channel></rss>