<?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: chroma key?]]></title><description><![CDATA[<p>Hello there,</p>
<p>Kudos to <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/cuinjune">@cuinjune</a> for the awesome Ofelia and to <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> for the brilliant work with the fast prototyping - those abstractions are a great entry point for me. It's really exciting stuff, but I'm afraid I'm floundering around a bit. My question is as above - I'm hoping I can find a green screen solution - perhaps along the lines of</p>
<p>ofxChromaKeyShader<br />
<a href="https://github.com/musiko/ofxChromaKeyShader" rel="nofollow">https://github.com/musiko/ofxChromaKeyShader</a></p>
<p>but I need help to make the jump with this into Ofelia.</p>
<p>Any pointers or links?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 16:22:49 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13488.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Jun 2021 17:44:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ofelia: chroma key? on Fri, 11 Jun 2021 09:05:10 GMT]]></title><description><![CDATA[<p>Hello there,</p>
<p>Kudos to <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/cuinjune">@cuinjune</a> for the awesome Ofelia and to <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> for the brilliant work with the fast prototyping - those abstractions are a great entry point for me. It's really exciting stuff, but I'm afraid I'm floundering around a bit. My question is as above - I'm hoping I can find a green screen solution - perhaps along the lines of</p>
<p>ofxChromaKeyShader<br />
<a href="https://github.com/musiko/ofxChromaKeyShader" rel="nofollow">https://github.com/musiko/ofxChromaKeyShader</a></p>
<p>but I need help to make the jump with this into Ofelia.</p>
<p>Any pointers or links?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key</guid><dc:creator><![CDATA[Tractor]]></dc:creator><pubDate>Fri, 11 Jun 2021 09:05:10 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Tue, 22 Jun 2021 06:00:03 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tractor">@Tractor</a></p>
<p>I don't have anything working right now, but:</p>
<p><a href="https://github.com/jamshark70/Ofelia-Fast-Prototyping/commits/topic/shader-support" rel="nofollow">https://github.com/jamshark70/Ofelia-Fast-Prototyping/commits/topic/shader-support</a></p>
<p>This is a fork off of 60Hz's abstractions, including an (experimental) [of.shader] object.</p>
<p>I think a green screen would be pretty easy to write as a fragment shader, and this would hook it in.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/2</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Tue, 22 Jun 2021 06:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Sat, 26 Jun 2021 18:50:10 GMT]]></title><description><![CDATA[<p>Much appreciated <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a>. I'll riddle this and see how far I get on the learning curve... meanwhile if there are any further suggestions out there I'll be very grateful...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/3</guid><dc:creator><![CDATA[Tractor]]></dc:creator><pubDate>Sat, 26 Jun 2021 18:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Sat, 31 Jul 2021 08:06:04 GMT]]></title><description><![CDATA[<p>I just had another quick look at this.</p>
<p>A green screen requires two input images. Currently [of.shader] doesn't support that... and it would be difficult to disambiguate which image is which.</p>
<p>Needs a bit more thought.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/4</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sat, 31 Jul 2021 08:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Sun, 01 Aug 2021 09:46:48 GMT]]></title><description><![CDATA[<p>Actually -- <a href="https://github.com/Prince-Polka/chroma_key" rel="nofollow">a Processing example</a> suggests that the shader <em>doesn't</em> need two image inputs. All you really need to do is draw two layers: 1, a background layer, and 2, use the shader to generate alpha on the foreground layer, and draw on top of the background.</p>
<p>That <em>can</em> be done with the work that I did on shaders before.</p>
<p>I had a crack at it, and I'm afraid I got only as far as not crashing. This is probably because I don't understand the math that's being done on the pixel colors, and didn't take time to figure it out. (Most of the fragment shader is copied directly from Processing example.)</p>
<p>You would need the shader-support branch of my fork of 60Hz's abstractions: <a href="https://github.com/jamshark70/Ofelia-Fast-Prototyping/tree/topic/shader-support" rel="nofollow">https://github.com/jamshark70/Ofelia-Fast-Prototyping/tree/topic/shader-support</a> -- don't use the main branch! This is all still experimental and not ready to merge.</p>
<p>Then the foreground layer looks like this (haven't added background yet): <a href="/uploads/files/1627811168244-0801-chromakey-test.pd">0801-chromakey-test.pd</a></p>
<p><img src="/uploads/files/1627811150472-pd-chromakey.png" alt="pd-chromakey.png" class="img-responsive img-markdown" /></p>
<p>The problem at this point is that I can't find HSV settings to make the green bits actually transparent. I would have expected that setting the range slider to 1.0 would make everything transparent, but it isn't even doing that. So there must be a logic error in the fragment shader, but I'm out of time for now. Maybe you can figure it out.</p>
<p>At least -- having a template that doesn't crash is a good step forward.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/5</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sun, 01 Aug 2021 09:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Tue, 17 Aug 2021 19:24:03 GMT]]></title><description><![CDATA[<p>This is very generous of you <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a>, thank you so much for your time and thought with this. This looks exciting, I must go set up your fork of the abstractions and see what I can learn. I'm afraid however my coding chops need major upping, but I'll certainly keep you posted on any progress. Again, much appreciated.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/6</guid><dc:creator><![CDATA[Tractor]]></dc:creator><pubDate>Tue, 17 Aug 2021 19:24:03 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Wed, 18 Aug 2021 06:36:43 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tractor">@Tractor</a></p>
<p>Unfortunately, I found later that my fork of the 60hz abstractions breaks drawing order, so the transparency doesn't work.</p>
<p>I'm afraid I have to give up on the project entirely. I won't have time.</p>
<p>But you should be able to take those GLSL files and load them with your own Lua code in an ofelia object. GLSL is separate; there's no tight coupling between my [of.shader] abstraction and the shader implementation.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/7</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Wed, 18 Aug 2021 06:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to Ofelia: chroma key? on Tue, 24 Aug 2021 09:38:49 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a><br />
Understood. I'm grateful for the starting point though. It's all learning for me, in any case, so I'll keep at it and see what I can come up with. Respect.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13488/ofelia-chroma-key/8</guid><dc:creator><![CDATA[Tractor]]></dc:creator><pubDate>Tue, 24 Aug 2021 09:38:49 GMT</pubDate></item></channel></rss>