[Bf-committers] development of conditional pass-thru node for compositor

Xavier Thomas xavier.thomas.1980 at gmail.com
Wed Apr 20 20:29:30 CEST 2011


Hi Pete,

In fact the math node (in the convertor category) does something similar.
It does not have the "pass if true" and "pass if false" socket but
it's output can be used as mask to achieve the same result.

I personally think your node is redundant, maybe more effective in
terms of performances but also less flexible.

It is a pity that we cannot do nodes plugins in C so that one can
distribute some specialized node, because bloating the sets of
defaults nodes (provided with Blender by default) is not really an
option too, it will confuse user too much.

Xavier

2011/4/20 pete larabell <xgl.asyliax at gmail.com>:
> not quite sure where this will end up, but it's working in it's
> current form, thought i'd share a quick render
>
> http://www.pasteall.org/pic/11269
>
> basic idea is:
>
> if(op1.pixel **TEST_HERE** op2.pixel){
>    out.pixel = pass_if_true.pixel;    //the 3rd input
> }else{
>    out.pixel = pass_if_false.pixel;   // the 4th input
> }
>
> obviously that's pseudo-code. :)
>
> current tests available are ==, !=, >, <, >=, <=
>
> plan to allow full RGBA sockets for at least the bottom 2 inputs and
> output socket.
>
> Cheers!
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list