[bug?] jit.gl.node and alpha color message

Aug 26, 2013 at 6:37am

[bug?] jit.gl.node and alpha color message


I have to send a color message, changing the alpha value, to a videoplane object.
Alpha does not seem to be linear via a jit.gl.node object.
It’s ok whithout using node.

I don’t understand why…. is it a bug ?

here is the patch (MBP retina, OS 10.8.4, Max 6.1.3) :

– Pasted Max Patch, click to expand. –


Aug 29, 2013 at 1:17am

Nobody Knows ? …. the Trouble I’ve Seen… with alpha & nodes…..

Aug 29, 2013 at 2:14am

i can notice the same here (osx10.6.8 max6.1.3), unfortunately i’m not too familiar with jitter nodes, so i can’t really help, but mayyybe it’s related to the default erase color of videoplane/node ? or some blending thing ?

Sep 2, 2013 at 12:01pm

it looks like when you capture the first videoplane to the gl.node, it effectively premultiplies the alpha value into the texture, while still keeping the alpha channel. when you display on the second videoplane with @blend_enable 1, it applies the alpha channel to the already premultiplied texture, thereby giving your non-linear effect.

solution is to set @blend_enable 0 on second videoplane.

Sep 3, 2013 at 7:56pm

Thanks for your reply.

@Rob : yes, it look like an alpha premultiplies problem….
you solution is not good for me, i need to use alpha on second videoplane.

In fact, i try to use 32 gl.cornerpins routed to 8 sub-masters gl.nodes, routed to 2 masters gl.nodes, routed to the gl.render…. and i need to use alpha…
So in my case, the gl.nodes premultiplies twice the alpha value !
May be using nodes isn’t the right way ?


You must be logged in to reply to this topic.