I patched clutter-0.8 with your code, transparency works, but whole
actors are semi-transparent.
In following example, red rectangle is semi-transparen : I must be
full red without transparency (see color)
I want only background stage to be transparent.
I'm using NVidia GPU with Compiz.
See my following code :
#!/usr/bin/perl
use strict;
use Clutter ':gtk-init';
use Glib qw(TRUE FALSE);
my $window = Gtk2::Window->new('toplevel');
$window->set_default_size(500, 500);
my $colormap = $window->get_screen->get_rgba_colormap;
$window->set_colormap($colormap) if $colormap;
$window->signal_connect('delete_event', sub { Gtk2->main_quit; });
my $clutter_embed = Gtk2::ClutterEmbed->new;
my $stage = $clutter_embed->get_stage;
$stage->set_color(Clutter::Color->new(0, 0, 0, 0));
$stage->set_opacity(255);
$window->add($clutter_embed);
$window->show_all;
my $rectangle = Clutter::Rectangle->new(Clutter::Color->new(255,0,0,255));
$rectangle->set_size(200, 200);
$stage->add($rectangle);
Gtk2->main;
2009/2/27 Vlad Seryakov <[email protected]>:
> I verified, it seems to work fine with black desktop background, all
> blendings are correct. I tested with Nvidia and XOrg on Archlinux.
>
> Below is the patch against GIT latest version., it enables ARGB visual by
> checking env variable CLUTTER_XRENDER. There are better ways to use it but
> for now it does the job.
>
> Stéphane Esté-Gracias wrote:
>>
>> Hello,
>>
>> Do you have any information about issue found by Vlad Seryakov ?
>> Does patch exist and work with Perl binding ?
>>
>> Thanks in advance,
>>
>> Stephane
>>
>> 2009/2/10 Vlad Seryakov <[email protected]>:
>>>
>>> Do you have any idea where this blending issue might be? Nvidia? GLX?
>>>
>>> Also, i use compiz/emerald as my window manager, i am going to try it
>>> with
>>> simpel xcompmgr and see if the result will be the same.
>>>
>>> The primary goal for this is to be able to use video in separate window
>>> instead of clutter-gst which makes video stutter when performing
>>> transformations in Clutter.
>>>
>>> Emmanuele Bassi wrote:
>>>>
>>>> On Tue, 2009-02-10 at 11:16 -0500, Vlad Seryakov wrote:
>>>>>
>>>>> I am still working on that, i use NVidia card and transparency works
>>>>> but
>>>>> too aggressive.
>>>>
>>>> ah, right. I was about to ask on which GPU you were testing.
>>>>
>>>> yes, nvidia drivers will honour RGBA visuals on GLX; most of the other
>>>> drivers won't.
>>>>
>>>>> I mean i have a stage with multiple textures, and textures with
>>>>> opacity
>>>>> over 192 became completely transparent. Also, it seems, once a texture
>>>>> has
>>>>> alpha, it burns through, so resulting window is transparent at this
>>>>> place. I
>>>>> am not sure i even described it correctly.
>>>>> I borrowed the idea from QT example called ARGB.
>>>>
>>>> it's probably a blending issue.
>>>>
>>>> ciao,
>>>> Emmanuele.
>>>>
>>> --
>>> To unsubscribe send a mail to [email protected]
>>>
>>>
>>>
>
--
To unsubscribe send a mail to [email protected]