Do any jitter objects take .png files with transparent backgrounds?

Nov 9, 2011 at 2:17pm

Do any jitter objects take .png files with transparent backgrounds?

I’m working on a project where the user “paints” digital images onto a screen using an infrared pen and infrared camera to track the line projection input. Some of these images are lassoed .png files with transparent backgrounds that I created in photoshop. I can get the files to read in to jit.lcd or jit.gl.sketch but they always appear with a square white background. I’d like to keep everything contained in one jit.lcd object (handles drawing the line, and superimposing the digital image) if at all possible, but if I have to add a new jitter object in order to read photos with transparent objects, what would that be? Thanks,

G

#59916
Nov 17, 2011 at 8:11am

they most certainly do- jit.qt.grab will apply the alpha channel in a .png to plane 0- but you will need to actually draw that transparency.

jit.lcd will ignore it. perhaps you should consider using a jit.gl.videoplane @blend_enable 1 as a named object in a jit.gl.sketch?

#215725

You must be logged in to reply to this topic.