Hey Zach,<br><br>Just wanted to privately respond to your email- sounds like some really cool stuff! I have been working on getting optimized graphics running on the XO, and have made some good progress but haven't yet had a chance to document my results on the wiki.
<br><br>I recently went through the process of taking an existing C++ SDL application, porting it to the OLPCGames framework, and then finally to GTK.<br><br>I would probably recommend against the OLPCGames framework unless you are doing standard "games", ie full screen and very limited UI. OLPCGames is based on PyGame, which is based on SDL, which is in turn based on drawing to GTK Images, so it's much simpler and just as efficient to just work with the GTK directly unless you really need the SDL 2D blitting functions etc. Using GTK directly also makes it that much easier to put in UI widgets when needed. There is no way to get direct "framebuffer" access,
e.g. map the video memory framebuffer into your process address space, that I am yet aware of - someone feel free to correct me if I'm wrong, and tell me how to do it too! :)<br><br>Another note is that it's really worthwhile to build Activities around Python if at all possible. While it's possible to interact with the Sugar UI from C++, it's much much harder. My approach was to keep the low level drawing routines, vector and matrix classes, etc in C++ and expose them to Python using SWIG (
<a href="http://www.swig.org">www.swig.org</a>). The application logic, Sugar interaction (journal, mesh networking, webcam interaction, UI) are all in Python/PyGTK.<br><br>Regarding rendering, the XO screen is 1200x800 16bit color (r5g6b5 format) which is pretty high resolution for realtime work given the processor speed. I have had good luck with working in 1/2 res (600x400) 32bit a8r8g8b8 color buffers, and then using an optimized upscale / format conversion with dirty rectangle management to display the images.
<br><br>Best regards,<br><br>Wade<br><br><div class="gmail_quote">On Jan 7, 2008 10:48 AM, zach lieberman <<a href="mailto:zach@eyebeam.org">zach@eyebeam.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi All,<br><br>I just wanted to introduce myself to this group - I am an artist / researcher<br>based in new york. I am currently a research fellow at a place called<br>eyebeam (<a href="http://eyebeam.org" target="_blank">
eyebeam.org</a>) and we have just received several OLPC laptops, so I am<br>starting to take a look developing content for them.<br><br>to give you a background on myself, I make art projects like:<br><br><a href="http://tmema.org/mis" target="_blank">
tmema.org/mis</a><br><a href="http://tmema.org/messa" target="_blank">tmema.org/messa</a><br><a href="http://thesystemis.com/drawnInstallation" target="_blank">thesystemis.com/drawnInstallation</a><br><a href="http://thesystemis.com/motionscapes" target="_blank">
thesystemis.com/motionscapes</a><br><a href="http://www.theremediproject.com/projects/issue12/systemisgesture/" target="_blank">www.theremediproject.com/projects/issue12/systemisgesture/</a><br><br>and I am also part of a project called openframeworks
<br>(openframeworks.cc/about) which is cross platform (mac, pc, linux) c++ library<br>that wraps opengl / quicktime / freetype / rtAudio / freeImage, etc. It's a<br>more artistic flavored version of a toolkits like OGRE, SDL, etc, and we have
<br>a pretty good community of people making things with it. some cool OF<br>projects include:<br><br><a href="http://csugrue.com/delicateBoundaries/" target="_blank">http://csugrue.com/delicateBoundaries/</a><br><a href="http://muonics.net/blog/index.php?postid=15" target="_blank">
http://muonics.net/blog/index.php?postid=15</a><br><br>Anyway, I will be taking a look at some of the issues with getting OF to run<br>on OLPC, including perhaps alternatives to opengl (for graphics) such as<br>rendering in cairo, as well as interfacing with hardware. There are several
<br>folks here at eyebeam and in new york who are interested in this, so we will<br>try to create a wiki page and post progress. Out first steps might be very<br>basic, but we have some ideas for games / experiments that would use the
<br>hardware capabilities of the OLPC to create playful interactions. it will be<br>a good challenge for OF to get it up and running on OLPC too, so I am excited.<br><br>Anyone who is in new york is welcome to get in touch with me offlist and come
<br>through eyebeam (we've already had MIT folks come for an openframeworks<br>workshop). We will likely have OLPC days here where we can meet and develop<br>demo apps, etc, and it would be good to meet other developers face to face.
<br><br>Take care!!<br>zach<br>_______________________________________________<br>Games mailing list<br><a href="mailto:Games@lists.laptop.org">Games@lists.laptop.org</a><br><a href="http://lists.laptop.org/listinfo/games" target="_blank">
http://lists.laptop.org/listinfo/games</a><br></blockquote></div><br>