they are not really intuitives, but they works like &quot;Levels&quot; in gimp<br>Lift must set the black level<br>Gain the white<br>and Gamme the mid point<br><br>The problem here is that the the values are manipulated for :<br>
- &quot;1,1,1&quot; to be &quot;no change value&quot; <br>- Values between 0 and 1 to darken the image<br>- An &quot;inverse&quot; button tho permit values &gt; 1 wich brighten the image<br>More than being unintuitives, it does not permit full control (inversing gain invers for all channels)<br>
<br>What solution:<br>- Curves will take big UI<br>- Levels maybe also<br><br>But it is not preferable to do this as an sequencer effect, This will permit the user to choose the effect acording to the type of correction he wants to make (Level, curves, ...)<br>
<br>For primary color correction this is not really important as for me &quot;Levels&quot; and &quot;Lift/Gamma/Gain&quot; are the same with different way of setting the parameter and they can be done with curves. <br><br>
But if complex secondary collor correction (like changing saturation&nbsp; and value acording to hue with a curve, ...) is going to make is way in blender the user must choose the one he wants<br><br>Note that with nodes doing a &quot;not so complex secondary color correction&quot; (like the exemple below) requires:<br>
-color space conversion<br>-doing a difference map with a constant value<br>-using this map as factor for color<br><br>It will need about 10 nodes and that is uaualy done in one in shake or with one effect in finalcut.<br>
<br>I am interested in this kind of stuff and I can code it but as I said if is going to be used by nodes, sequencer and image editor ther must be a way to unify it.<br><br>xavier<br><br><div class="gmail_quote">2008/12/10 Campbell Barton <span dir="ltr">&lt;<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Thu, Dec 11, 2008 at 9:33 AM, Xavier Thomas<br>
&lt;<a href="mailto:xavier.thomas.1980@gmail.com">xavier.thomas.1980@gmail.com</a>&gt; wrote:<br>
&gt; Yes, that is what I ment but is it ok to add an UI parameter &quot;ofset&quot; with is<br>
&gt; button &quot;Inv ofset&quot; at the side of the Lift gamma and gain parameters because<br>
&gt; the UI will get really charged.<br>
&gt;<br>
&gt; And what about an image treatment library, because I already have made this<br>
&gt; function in my keyer node and crating a color correction node with these<br>
&gt; controls might be usefull also: this will result in a lot of code<br>
&gt; duplication.<br>
&gt;<br>
&gt;<br>
&gt; 2008/12/10 Dalai Felinto &lt;<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Xavier.<br>
&gt;&gt;<br>
&gt;&gt; Can&#39;t you do a do_version()?<br>
&gt;&gt; In readfile.c you can see a lot of parameters that need to be updated<br>
&gt;&gt; over Blender version.<br>
&gt;&gt; If what you need is a simple offset for old blender files work in the<br>
&gt;&gt; same way as new blender files (with this bug fixed), this should work.<br>
&gt;&gt;<br>
&gt;&gt; I didn&#39;t see the bug or this part of the code, but do_version()<br>
&gt;&gt; sometimes is the better way to go.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Dalai<br>
&gt;&gt; <a href="http://blenderecia.orgfree.com" target="_blank">http://blenderecia.orgfree.com</a><br>
&gt;&gt;<br>
&gt;&gt; 2008/12/10 Xavier Thomas &lt;<a href="mailto:xavier.thomas.1980@gmail.com">xavier.thomas.1980@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Lately, I was trying to implicate me in blender developement, &nbsp;and<br>
&gt;&gt; &gt; begining<br>
&gt;&gt; &gt; with small things (after the keyr node) I &nbsp;desided to correct this bug:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://projects.blender.org/tracker/index.php?func=detail&amp;aid=18010&amp;group_id=9&amp;atid=125" target="_blank">http://projects.blender.org/tracker/index.php?func=detail&amp;aid=18010&amp;group_id=9&amp;atid=125</a><br>

&gt;&gt; &gt;<br>
&gt;&gt; &gt; Basicly the lift parameter of color correction in sequencer works more<br>
&gt;&gt; &gt; like<br>
&gt;&gt; &gt; a &quot;value&quot; color correction than a &quot;lift&quot; (exept that it work on RGB<br>
&gt;&gt; &gt; channel<br>
&gt;&gt; &gt; separately so I think &quot;ofset&quot; is more apropriate then &quot;value&quot;)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Fixing it would be simple but old files that use this parameter will<br>
&gt;&gt; &gt; have a<br>
&gt;&gt; &gt; diferent render result, and after discussing with Matt Ebb on IRC it<br>
&gt;&gt; &gt; seems<br>
&gt;&gt; &gt; that this is not acceptable.<br>
&gt;&gt; &gt; So the only solution to have a proper color correction in the sequencer<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; to add an &quot;ofset&quot; parameter. Is this OK ? (maybe the UI will get too<br>
&gt;&gt; &gt; compact)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Further, why do not put this kind of function in an image library so it<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; be accesible form other part of the program (nodes and maybe image<br>
&gt;&gt; &gt; editor)<br>
&gt;&gt; &gt; like the quick blur function in the nodes CMP_util.h<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Sorry to disturb, I know lot of you are really buzzy but I prefer to get<br>
&gt;&gt; &gt; good directions before coding.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Xavier<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Bf-committers mailing list<br>
&gt;&gt; &gt; <a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
&gt;&gt; &gt; <a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Bf-committers mailing list<br>
&gt;&gt; <a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
&gt;&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Bf-committers mailing list<br>
&gt; <a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
<br>
</div></div>Recently I tried making sense of the sequencer&#39;s color functions and<br>
found them quite confusing. Even after tweaking them for 5min I don&#39;t<br>
really understand what they do exactly.<br>
<br>
Id much prefer convert these values into either, gimp/photoshop color<br>
&#39;Levels&#39; or &#39;Curves&#39;.<br>
Curves are already used in other parts of blender so I&#39;ts probably not<br>
that hard to make this change,<br>
<br>
Peter, if your reading, Could these settings be converted to curves?<br>
(even a close approximation would be ok I think)<br>
<br>
--<br>
<font color="#888888">- Campbell<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Bf-committers mailing list<br>
<a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
</div></div></blockquote></div><br>