Thought spam the list with more info in case anyone has any ideas, also there 
is a possible bug I may have found...

The following link is an image of my pick buffer as generated on my 16-bit 
linux box - the window is 800x600, and there should only be the stage plus 3 
actors on-screen, this is the 3 purple rectangular boxes: 
http://a.imageshack.us/img571/2936/pickbuffer00001.png

First of all, I'm not sure why that black area is there. Second, I added some 
debug to the function cogl_read_pixels in cogl.c, that printed out the data 
contained in the pixel buffer both before and after the pixel read (using 
glReadPixels). Interestingly if I click on the black area, I get FFFFFFFF back. 
On the White area OR any of the purple areas and I get 00000000.

The "possible" bug I may have found is that if I set 
CLUTTER_PICK=dump-pick-buffers then every time the pixel data I get back is 
FFFFFFFF - regardless of where I click. Not sure if this is some unintended 
side-effect of having the debug setting enabled.

The following link is the pick buffer for the same app running on my Windows PC 
using clutter:
http://a.imageshack.us/img408/1963/pickbuffer00006.png this is (I assume) 
running on 32 bit mode and it looks entirely different to the previous pick 
buffer I generated.

Any ideas?

Mark T


-----Original Message-----
From: Mark Tucker 
Sent: 23 July 2010 15:33
To: Mark Tucker; Øyvind Kolås
Cc: [email protected]
Subject: RE: pick mode not working in 16-bit bit depth?

Is there a way I can get information about the GL mode that clutter (though I 
guess it may actually be cogl) has chosen or is attempting to run in?

I'm on about things like the bit-depth, whether it has an alpha channel, stuff 
like that.

Thanks

Mark T

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Mark 
Tucker
Sent: 22 July 2010 16:20
To: Øyvind Kolås
Cc: [email protected]
Subject: RE: pick mode not working in 16-bit bit depth?

Hello,

I have just tried setting the variable as you describe and it seems to have had 
no effect - all clicks are still being associated with the default stage.

I should probably mention that the "target platform" in my original mail is a 
linux system using the glx backend, but it's limited in its resources and the 
max bit-depth I can use is 16 (so going up to 24/32 bit is not an option for 
me, unfortunately).

Thanks

Mark T

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Øyvind Kolås
Sent: 22 July 2010 16:04
To: Mark Tucker
Cc: [email protected]
Subject: Re: pick mode not working in 16-bit bit depth?

On Thu, Jul 22, 2010 at 2:43 PM, Mark Tucker <[email protected]> wrote:
> Is clutter supposed to be able to support such a 16-bit mode (running in
> R5G6B5) properly or am I on my own here?

Try setting the environment variable
CLUTTER_FUZZY_PICK=1 before running your program to make clutter
assume that the driver is not able to do a complete set/get round trip
of colors with the number of bits available in the pixel format.

/Øyvind Kolås
Intel Open Source Technology Centre
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to