Re: [Sugar-devel] flickering mouse in an activity on an xo
Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png You can find the original git rep that I made standardcursor.png out of at: http://git.sugarlabs.org/projects/sugar-artwork/repos/mainline/trees/master/cursor/sugar I see that your copy and the originals have opaque white where I would expect 100% transparency. Is there a reason for this or a suggested technique for removing the white at runtime? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] flickering mouse in an activity on an xo
On Fri, Sep 10, 2010 at 2:20 PM, Erik Blankinship er...@mediamods.comwrote: Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png You can find the original git rep that I made standardcursor.png out of at: http://git.sugarlabs.org/projects/sugar-artwork/repos/mainline/trees/master/cursor/sugar I see that your copy and the originals have opaque white where I would expect 100% transparency. Is there a reason for this or a suggested technique for removing the white at runtime? Never mind; my cheap shareware image editor was not a good investment :-) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] flickering mouse in an activity on an xo
Hi Erik, On 29 Aug 2010, at 15:55, Erik Blankinship er...@mediamods.com wrote: I am experimenting with integrating the hamster graphics library into an XO activity. http://github.com/tbaugis/hamster_experiments/wiki ( found on the pycairo resources page: http://cairographics.org/pycairo/resources/ ) Because of the ease with which animation can be rendered with this library, I think it might help some developers to create engaging activities. Unfortunately, I have encountered a problem when I run a very basic test activity on an XO1-5: the mouse pointer flickers whenever a sprite is animated. (This bug also happens when I run the code in fedora desktop on the XO... but does not happen in the sugar emulator or on my f13 box). Here is a video which demonstrates the flickering: http://www.youtube.com/watch?v=jkBTafiwf38 Oooh, do I spot an icon with gradient, and there was me hoping you'd not use it just to make shiny 3D bevelled icon eye candy :-p FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor is a key part of the UI, pygame also didn't pickup the Sugar cursor default shape — so I cheated, I switch off the cursor, and place a pygame sprite in the same place. No flicker, correct looking cursor. Total hack of course (though code in the end was easy/minimal). Just a handful of lines in physics.py, most of which there to hide the fake pygame canvas cursor when the cursor moves into the toolbar area: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/physics.py Regards, --Gary Here is the test activity if you'd like to see the behaviour and reference the source: http://alumni.media.mit.edu/~erikb/tmp/Test.activity.xo I am hoping that the sugar community might know of issues which might be responsible for mouse flickering? Thanks. Erik ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] flickering mouse in an activity on an xo
FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor is a key part of the UI, pygame also didn't pickup the Sugar cursor default shape — so I cheated, I switch off the cursor, and place a pygame sprite in the same place. No flicker, correct looking cursor. Total hack of course (though code in the end was easy/minimal). Just a handful of lines in physics.py, most of which there to hide the fake pygame canvas cursor when the cursor moves into the toolbar area: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/physics.py http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/physics.py Interesting... thanks for sharing the workaround. That should work for the hamster library too. When I get a chance to try it out, I will report back to this thread. Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] flickering mouse in an activity on an xo
Hi Erik, On 29 Aug 2010, at 18:17, Erik Blankinship wrote: FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor is a key part of the UI, pygame also didn't pickup the Sugar cursor default shape — so I cheated, I switch off the cursor, and place a pygame sprite in the same place. No flicker, correct looking cursor. Total hack of course (though code in the end was easy/minimal). Just a handful of lines in physics.py, most of which there to hide the fake pygame canvas cursor when the cursor moves into the toolbar area: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/physics.py Interesting... thanks for sharing the workaround. That should work for the hamster library too. When I get a chance to try it out, I will report back to this thread. Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png You can find the original git rep that I made standardcursor.png out of at: http://git.sugarlabs.org/projects/sugar-artwork/repos/mainline/trees/master/cursor/sugar But you'll note that the png's (a sequence of 12 animation states, and one hotspot file), requires a slice and dice to get an individual cursor out. These png images, to the best of my knowledge, do not end up in an actual build – the build scripts do some funky things with these and output a rather curious format (Xcursor I think), that seem to live in: /usr/share/icons/sugar/cursors Sure it all makes perfect sense for an X windows developer – there's probably some X library somewhere for reading them in and converting to other image representations. Regards, --Gary ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] flickering mouse in an activity on an xo
On Sun, Aug 29, 2010 at 1:51 PM, Gary Martin garycmar...@googlemail.comwrote: Hi Erik, On 29 Aug 2010, at 18:17, Erik Blankinship wrote: FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor is a key part of the UI, pygame also didn't pickup the Sugar cursor default shape — so I cheated, I switch off the cursor, and place a pygame sprite in the same place. No flicker, correct looking cursor. Total hack of course (though code in the end was easy/minimal). Just a handful of lines in physics.py, most of which there to hide the fake pygame canvas cursor when the cursor moves into the toolbar area: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/physics.py Interesting... thanks for sharing the workaround. That should work for the hamster library too. When I get a chance to try it out, I will report back to this thread. Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png You can find the original git rep that I made standardcursor.png out of at: http://git.sugarlabs.org/projects/sugar-artwork/repos/mainline/trees/master/cursor/sugar But you'll note that the png's (a sequence of 12 animation states, and one hotspot file), requires a slice and dice to get an individual cursor out. These png images, to the best of my knowledge, do not end up in an actual build – the build scripts do some funky things with these and output a rather curious format (Xcursor I think), that seem to live in: /usr/share/icons/sugar/cursors Sure it all makes perfect sense for an X windows developer – there's probably some X library somewhere for reading them in and converting to other image representations. This has been very helpful. Thank you. It seems that there are two action items: One: where in trac do I upvote preventing mouse pointers from flickering in pygame / hamster? Two: can someone update the sugar almanac with examples so that python developers access the cursor graphics? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] flickering mouse in an activity on an xo
On 29 August 2010 08:55, Erik Blankinship er...@mediamods.com wrote: Unfortunately, I have encountered a problem when I run a very basic test activity on an XO1-5: the mouse pointer flickers whenever a sprite is animated. This is because we are using software cursor on XO-1.5. It's to be expected. It might change in the future. Background: if we use the hardware cursor, we have to store the location of the cursor during suspend and restore it during resume. We can't query the hardware for the location of the hardware cursor. The X server (which knows about the location of the cursor) doesn't know about suspend/resume, and the kernel (which knows about suspend/resume) doesn't know about the X server. Future solution: DRI2/KMS (move the X graphics driver into the kernel) Daniel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel