<?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[cosine RGB gradient shader]]></title><description><![CDATA[<p dir="auto"><em>On 29/01/2017 at 07:00, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">I was thinking about trying this out as a personal project, but I had to post here as well to see what you all think:<br />
I found this very simple but awesome approach to colour gradient manipulation, where RGB intensity is controlled by a per channel cosine function each with adjustable parameters:</p>
<p dir="auto"><a href="http://dev.thi.ng/gradients/" target="_blank" rel="noopener noreferrer nofollow ugc">http://dev.thi.ng/gradients/</a></p>
<p dir="auto">this would be ideal for application wherever a gradient data field is present, eg. colourizer shader.<br />
and to have animation control over the individual function parameters would be an extremely powerful feature.</p>
<p dir="auto">The keyframes in the gradient section would effectively be where the generated gradient is sampled, and have option to remember original colour at location or re-sample as it is moved, allowing cool gradient distortion/interpolation.</p>
<p dir="auto">I haven't looked into how to approach this yet, any pointers would be appreciated. Otherwise, would love to see if anyone would like to try this out.</p>
]]></description><link>http://developers.maxon.net/forum/topic/9925/13368_cosine-rgb-gradient-shader</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 06:56:42 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/9925.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 May 2018 16:26:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cosine RGB gradient shader on Thu, 10 May 2018 16:26:38 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 02/02/2017 at 02:46, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Thanks, damn that's beyond me at this point..<br />
I might try and do a simple dirty version using python tag with c4d.Gradient</p>
]]></description><link>http://developers.maxon.net/forum/post/51222</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/51222</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Thu, 10 May 2018 16:26:38 GMT</pubDate></item><item><title><![CDATA[Reply to cosine RGB gradient shader on Thu, 10 May 2018 16:26:38 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 30/01/2017 at 02:35, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">interesting link.</p>
<p dir="auto">Basically you have two options. I think, the more generic one is to implement a <a href="https://developers.maxon.net/docs/cpp/2023_2/class_custom_gui_data.html" target="_blank" rel="noopener noreferrer nofollow ugc">CustomGUI</a>/<a href="https://developers.maxon.net/docs/cpp/2023_2/classi_custom_gui.html" target="_blank" rel="noopener noreferrer nofollow ugc">iCustomGui </a>for the gradient data type. There's a <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk/blob/master/source/gui/customgui_string.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">small example</a> in the cinema4dsdk examples. I'd say, it's one of the more advanced topics in the SDK and this can only be done via C++.</p>
<p dir="auto">The other option is to really implement a new gradient shader via <a href="https://developers.maxon.net/docs/cpp/2023_2/class_shader_data.html" target="_blank" rel="noopener noreferrer nofollow ugc">ShaderData</a>, there are multiple <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk/tree/master/source/shader" target="_blank" rel="noopener noreferrer nofollow ugc">examples on this topic</a>. This can also be done in Python (although it might not be the best idea due to the need for speed). And you will also have to think about mapping the gradient to e.g. UV space.</p>
]]></description><link>http://developers.maxon.net/forum/post/51221</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/51221</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Thu, 10 May 2018 16:26:38 GMT</pubDate></item></channel></rss>