Forums > Jitter to alpha transparency not working

Jul 02 2013 | 6:01 am

Hi Everyone,

I’m sure the answer to this is really simple. I need to overlay two effects. The chain is as follows.
jit.g.model connected to (@capture 1) this outputs a texture which go’s to 2 objects (eg. lumadisplace and kaleido). I tried putting them both into co.alphablend.jxs and co.alphaglue.jxs, no joy
The final result then gos into This then outputs to a object

This all works great with one slab so the chain(s) works, thats confirmed. I am just so stuck with this, i’ve tried depth disable/enable, blend enable, trawled the forums and tuts, I just ain’t getting it.

I know it has to do with Depth enable and blend enable and blend modes, still no joy.
Could somebody tell me how to set up alpha transparency with open GL in general.
Final aim is 2 seperate going through chains of and finally being merged together with full Alpha transparency.
Any and all help is greatly appreciated :) And of course an example patch of the simplest kind would be a life saver.

Jul 02 2013 | 8:52 am

post a patch

Jul 02 2013 | 8:54 am

for transparency you want:
@depth_enable 0 @blend_enable 1
then you control layering with @layer
if you are capturing, you want to set the gl.node @erase_color 0 0 0 0 in order to capture with transparent background.

Jul 03 2013 | 3:03 am

The forum won’t let me paste and upload the " copy compressed " code :(

Jul 03 2013 | 3:06 am

Then i’ll try uploading it as an attached file.

Jul 03 2013 | 3:07 am

I’m not sure if the 3d models (nothing special) have also been included. This is the 1st time I’ve uploaded something to the forums. If I need to alter anything or include something then just point it out and I’ll do my best to make it happen.

Jul 03 2013 | 11:53 am

the problem is the two slab you are using both set the output texture alpha channel to 1, thereby preventing you from alphablending properly.

you can determine this by hooking the output up to a jit.matrix, and then to a jit.unpack, and viewing the first outlet of the jit.unpack with a pwindow. that is the alpha channel of that texture.

in this particular case, where you have two textures on a black background, you can simply add the two textures together with a object.

otherwise, you will have to re-create your alpha channel, possibly using one of the color planes, or the calculated luminance of the color planes.

Jul 06 2013 | 12:34 am

Hi Rob,

I’ve finally got it to work thanks to your advice :) is an incredible object but I don’t think I’m good enough yet with Jitter and equations to do the basics.
I also figured out how to send chain 1 to one and the 2nd to another
This allows me to mix upfront and decide if they’re on layer 0 or 1. I’m going to post a patch in a few days with both techniques so anyone else hitting this problem can get it solved quickly. As always thanks for the guiding tips. They’re a life saver !

Aug 19 2014 | 7:53 am

If you were able to post the patch with these techniques I’d appreciate it!

Aug 20 2014 | 6:41 am

Hi Antialias,

I’m not behind my regular computer right now but just check the examples in the cycling 74 folder.
the file name is
Works instantly if your alpha data is correct.

Viewing 10 posts - 1 through 10 (of 10 total)

Forums > Jitter