[PD] Alpha+pix_film
Hi all, here is Marco, this is my first post.. glad to be here. i'm trying to use the [alpha] object to mix different videos using OpenGL. I followed tutorials, checked the forum and the list but i still have this problem: I can change the transparency of a geo without texture, and everything works also when i load images. But when i add [pix_film] or [pix_movie] and i load a video the geo itself disappears - if alpha is on - and appears again (displaying correctly the video) when alpha is off. I also tried to change [pix_texture] with [pix_texture2] and [rectangle] with other geos, but nothing... I think this is pretty strange. this is my basic patch not working: [gemhead] | [pix_film]X[t f] | [pix_texture] | [alpha] | [colorRGB] | [square] Cannot understand if it could be a problem of my graphic card - ATI Mobility Radeon X1600 - or something else. I work - unfortunately - on windows xp pro, with pd-extended latest stable release. i didn't have the chance to try the same on another computer, by now. Thanks a lot to everybody.. cheers... Marco ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Alpha+pix_film
Hi Marius, thanks for the answer, i tried in the order you suggested but i have the same effect. With 'alpha on/off' i mean sending 1/0 with [tgl] to the left inlet of [alpha]. I tried also different video formats (including the homer.avi in gem examples) but nothing. I made a new patch only to find the bug in this process, so i don't have any more objects that the ones that i draw in the previous e-mail and the [gemwin] with its proper messages. really strange... Marco - Original Message Follows - From: marius schebella To: i...@thesaddj.com Cc: pd-list@iem.at Subject: Re: [PD] Alpha+pix_film Date: Sun, 25 Jan 2009 00:43:19 +0100 > i...@thesaddj.com wrote: > > Hi all, > > here is Marco, this is my first post.. glad to be here. > > i'm trying to use the [alpha] object to mix different > > videos using OpenGL. I followed tutorials, checked the > > forum and the list but i still have this problem: > > I can change the transparency of a geo without texture, > > and everything works also when i load images. But when i > > add [pix_film] or [pix_movie] and i load a video the geo > > itself disappears - if alpha is on - and appears again > > (displaying correctly the video) when alpha is off. > > I also tried to change [pix_texture] with [pix_texture2] > > and [rectangle] with other geos, but nothing... > > I think this is pretty strange. > > this is my basic patch not working: > > > > > > [gemhead] > > | > > [pix_film]X[t f] > > | > > [pix_texture] > > | > > [alpha] > > | > > [colorRGB] > > | > > [square] > > > That should work. even if the order is a little strange, > because I would put the alpha and color before the > pix_texture, but it is working here and I also have an > ATI Radeon X1600 (MacOS). what do you mean with "turn > alpha on/off"? are you setting the alpha by sending a > value between 0 and 1 to the rightmost inlet of colorRGB? > are there additional things in your patch which could > cause the problem? marius. > > > > > > > > Cannot understand if it could be a problem of my graphic > > card - ATI Mobility Radeon X1600 - or something else. > > I work - unfortunately - on windows xp pro, with > > pd-extended latest stable release. > > i didn't have the chance to try the same on another > > computer, by now. > > Thanks a lot to everybody.. > > > > cheers... > > > > Marco > > > > ___ > > Pd-list@iem.at mailing list > > UNSUBSCRIBE and account-management -> > > http://lists.puredata.info/listinfo/pd-list > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Alpha+pix_film
HI everybody, thanks to all, i solved the issue. But is still not clear to me what's happening. I mixed the different suggestions you gave me (cause independently no one was working) and i got this: [gemhead] | [pix_film]/[colorspace RGB( | [pix_alpha] | [colorRGB] | [alpha] | [pix_texture] | [rectangle] it looks a bit weird but it's working and my cpu is drinking a coffee while i mix four videos of 160/200mb each. but I'm really keen to understand where was my problem... as Philippe said i have to send the [colorspace RGB( message first and then load videos. [pix_alpha] seems to be the obj making the work done, but anyway i had to add [colorRGB] to be able to change transparency. @IOhannes: i'm on windows xp pro. do you think it could be because of this? what do you mean with video-importer? thanks.. Marco ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Alpha+pix_film
i use RGBA then :) thanks IOhannes for explainations, now i get it. i had the same issue with different video formats including all the movies that come with Gem, so maybe there might be a bug for real... please tell me if you need more infos about this.. Marco - Original Message Follows - From: IOhannes m zmoelnig To: i...@thesaddj.com Cc: pd-list@iem.at Subject: Re: [PD] Alpha+pix_film Date: Mon, 26 Jan 2009 11:13:18 +0100 > i...@thesaddj.com wrote: > > HI everybody, > > thanks to all, i solved the issue. But is still not > > clear to me what's happening. > > I mixed the different suggestions you gave me (cause > > independently no one was working) and i got this: > > > > [gemhead] > > | > > [pix_film]/[colorspace RGB( > > | > > [pix_alpha] > > | > > [colorRGB] > > | > > [alpha] > > | > > [pix_texture] > > | > > [rectangle] > > > > it looks a bit weird but it's working and my cpu is > > drinking a coffee while i mix four videos of 160/200mb > > each. but I'm really keen to understand where was my > > problem... as Philippe said i have to send the > > [colorspace RGB( message first and then load videos. > > [pix_alpha] seems to be the obj making the work done, > but > > well, [pix_alpha] will overwrite whatever alpha is in the > channel. so if the original alpha is 0 (full transparency) > , [pix_alpha] will eventually raise this to 1 (full > opacity), thus making your object not disappear. > > what bothers me a bit is the use of RGB rather than RGBA > in the colorspace message > > > > anyway i had to add [colorRGB] to be able to change > > transparency. > > well, that was the original idea, wasn't it? > > > @IOhannes: i'm on windows xp pro. do you think it could > > be because of this? > > don't know, it just makes it easier to debug...(e.g. on > osx the default colorspace is YUV, having no > alpha-channel at all, which would make it unlikely that > each pixel would have an alpha of 0) which movie are you > opening? an AVI, a QuickTime movie? > > could you share it for testing purposes? or does it happen > with the example movies that come with Gem as well? > > > what do you mean with video-importer? > > i mean the actual backend that reads the file and passes > the frame to pix_film. > e.g. the Gem code that accesses QuickTime/W32 or > DirectShow or gmerlin. if the movie does not contain an > alpha-channel, "somebody" has to provide values for alpha > when doing RGBA; there might be a bug there... > > fgkafdrt, > IOhannes > > > [Attachment: smime.p7s] ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list