pict & png: transparency
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
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.
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
with
no transparency..
best
-jonas
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
that's good to know, thanks a bunch, ben!
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
Ah, sorry about my somewhat misdirected suggestion. I assumed you were working with fpic, not lcd (didn't check your patch).
@Ben Bracken
What would be the way to open a PNG and preserve the transparency in OpenGL?
Thanks a lot, Enrico ^_^
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: