Hi;
On Tue, 2007-08-21 at 15:47 +0300, Kate Alhola wrote:
> >
> I put some debug there:
>
> /* Calls should work under both GL and GLES, note GLES needs RGBA */
> glGetIntegerv(GL_VIEWPORT, viewport);
> glReadPixels(x, viewport[3] - y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
>
> printf("_clutter_do_pick(%3d,%3d,%3d) vp[%3d,%3d,%3d,%3d]
> pixel[%02x,%02x,%02x]\n",
> x,y,viewport[3]-y,
> viewport[0],viewport[1],viewport[2],viewport[3],
> pixel[0],pixel[1],pixel[2]);
>
Ah cool stuff :-)
> And il looks alike there in some problem geting right pixel value
> _clutter_do_pick(162, 86,394) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(162, 86) id=000022b0
> [stage] MOTION *source*
> _clutter_do_pick(298, 85,395) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(298, 85) id=000022b0
>
> _clutter_do_pick(293, 83,397) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(293, 83) id=000022b0
> [stage] MOTION *source*
> _clutter_do_pick(458, 86,394) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(458, 86) id=000022b0
>
> _clutter_do_pick(453, 82,398) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(453, 82) id=000022b0
> [stage] MOTION *source*
> _clutter_do_pick(367,166,314) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(367,166) id=000022b0
>
> _clutter_do_pick(365,166,314) vp[ 0, 0,640,480] pixel[20,56,01]
> _clutter_do_pick(365,166) id=000022b0
>
> It aalways picks some garbage in pixel values. In this trace
> i hit red, green, blue and then white background.
>
Arg right that is not good.
> It looks that it may be bug in eglx library of screen drawable rendering ?
>
Potentially it looks that way. It could be worth doing a fullscreen
glreadpixels there and then dumping this data to disk via converting to
a gdkpixbuf (look for CLUTTER_DUMP_TILES in clutter-texture.c, it does
something similar).
-- Matthew
--
To unsubscribe send a mail to [EMAIL PROTECTED]