pict & png: transparency

flim's icon

hello!

pict & png should give me transparency, but they don't. anything I've missed on, maybe on the photoshop side? (I've prepared a single picture without its background)

cheers!

-jonas

Max Patch
Copy patch and select New From Clipboard in Max.

EMV's icon

In Max, you don't need to do anything to get transparent pngs to work. So it's probably on the photoshop side. Did you enable the alpha channel / transparency when saving?

In photoshop, put your object on a layer, and remove the background layer altogether. If you see the grey-white checker pattern in some parts, that's where it will be transparent when you save it as a png.

flim's icon

thanks for the hint, EMV!

I thought I did all that. that's why I'm fairly clueless about why it's not working

try

Max Patch
Copy patch and select New From Clipboard in Max.

with

no transparency..

best

-jonas

Ben Bracken's icon

Hi Jonas,

At this time, jit.lcd does not support alpha transparency. You can use jit.qt.movie/jit.matrix->jit.alphablend or OpenGL.

-Ben

flim's icon

that's good to know, thanks a bunch, ben!

flim's icon

hey ben (or anyone interested, hehe)..

I've been fooling around a bit. it appears to me, that in this particular case (transparency in combination with "face replacement"/cv.jit.faces) none of your suggestions will do.. due to the drawpict command I guess/my need for working with jit.lcd..

jit.lcd does not support alpha transparency AND there's no alternative to replacing cv.jit.faces' box with an image - am I right? (:

cheers! &
all the best

-j

EMV's icon

Ah, sorry about my somewhat misdirected suggestion. I assumed you were working with fpic, not lcd (didn't check your patch).

enricodetrizio's icon

@Ben Bracken

What would be the way to open a PNG and preserve the transparency in OpenGL?

Thanks a lot, Enrico ^_^

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

It depends on exactly what you want to do, lots of ways to do this, but one simple example is to use videoplanes, layers and blend_enable 1: