Re: [OLPC-Games] Phun source code [was: Re: Physics with Python and Pygame (Chipmunk 2D Physics Engine)]
I started a page on the wiki for comparing the engines: http://wiki.laptop.org/go/Physic_Engines A major difference seems to be that box2d is more mature and feature-rich, but it's library has 1.7 mb, whereas Chipmunk provides stable and fast, basic physics within 48kb for the library. Chris Joshua Minor wrote: > (re-adding [EMAIL PROTECTED] to this thread) > > Indeed, perhaps we can convince the Phun folks to release their source > in an OLPC recommended license. > http://wiki.laptop.org/go/Licensing > > Phun has several features that Chipmunk does not, namely motors, > springs, water + buoyancy and a more sophisticated solver. Another > open-source alternative, Box2D, also has motors which Chipmunk does not. > > -josh > > On Mar 12, 2008, at 9:49 PM, Nicola Larosa wrote: > >> Chris Hager wrote: >>> PS: Phun seems to be interesting, but unfortunately it comes without >>> source :( >> >> From the FAQ: >> >> "Is the source code going to be released?" >> >> "I'm planning on it, yes, but I haven't decided on a license or set a >> date yet." >> >> http://phun.cs.umu.se/wiki/FAQ , fifth question. >> >> They probably need just a little more motivation. ;-) >> >> -- >> Nicola Larosa - http://www.tekNico.net/ >> >> Forget information overload. You'll find inspiration, >> innovation, and connection in information possibility. >> -- Anne Truitt Zelenka, October 2007 >> >> ___ >> Games mailing list >> [EMAIL PROTECTED] >> http://lists.laptop.org/listinfo/games > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [OLPC-Games] Phun source code [was: Re: Physics with Python and Pygame (Chipmunk 2D Physics Engine)]
(re-adding [EMAIL PROTECTED] to this thread) Indeed, perhaps we can convince the Phun folks to release their source in an OLPC recommended license. http://wiki.laptop.org/go/Licensing Phun has several features that Chipmunk does not, namely motors, springs, water + buoyancy and a more sophisticated solver. Another open-source alternative, Box2D, also has motors which Chipmunk does not. -josh On Mar 12, 2008, at 9:49 PM, Nicola Larosa wrote: > Chris Hager wrote: >> PS: Phun seems to be interesting, but unfortunately it comes without >> source :( > > From the FAQ: > > "Is the source code going to be released?" > > "I'm planning on it, yes, but I haven't decided on a license or set a > date yet." > > http://phun.cs.umu.se/wiki/FAQ , fifth question. > > They probably need just a little more motivation. ;-) > > -- > Nicola Larosa - http://www.tekNico.net/ > > Forget information overload. You'll find inspiration, > innovation, and connection in information possibility. > -- Anne Truitt Zelenka, October 2007 > > ___ > Games mailing list > [EMAIL PROTECTED] > http://lists.laptop.org/listinfo/games ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Physics with Python and Pygame (Chipmunk 2D Physics Engine)
Hi Chris, > So all together the dependencies for the xo laptop (chipmunk, > pymunk and pymunx) are ~ 150kb. (+6.7kb for the demo :) Sounds good to me. > Integrating the physics examples it into pippy would be interesting > -- my primary goal was to make it easy-to-use and to have examples > anyway. I would be up to do that, are there any pygame examples > for pippy yet? Yup, there are several included examples already using pygame (bounce, camera, lines, pong, slideshow). I just tried out throwing the examples (into pippy/data/physics) and pymunk/pymunx (pippy/library) into Pippy, and most of them worked. Some of them depend on pyglet, I think. Let me know if you'd like to go ahead and roll these up into Pippy -- maybe we could pick three or so of the examples for it? Thanks! - Chris. -- Chris Ball <[EMAIL PROTECTED]> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Physics with Python and Pygame (Chipmunk 2D Physics Engine)
Hey. Chris Ball wrote: > Hi, > >> http://wiki.laptop.org/go/Pymunx > > Wow, how awesome! Do you have an XO to test on? Have you thought about > releasing a standalone .xo, or throwing these into Pippy? What are the > dependencies and disk usage like for the underlying chipmunk library Yeah, I have a XO around and tested demo6 for the framerates: - starting at 43 fps with 2 Elements - 5 Elements: 38 fps - 12 Elements: 31 fps - 21 Elements: ~ 25 fps - 45 Elements: ~ 20 fps The feeling is actually quite okay on the xo laptop! :) At least with not that many Elements. I'd say it's possible to integrate it into pygame xo activities. The dependencies are: 1. Chipmunk Libraries compiled for the right platform. We currently bundle for linux 32 bit (48kb), linux 64 bit (65kb) and windows (66kb). Osx is also supported, but I have none around to compile the libraries 2. Pymunk: Python CTypes Bindings for Chipmunk (~80kb) So all together the dependencies for the xo laptop (chipmunk, pymunk and pymunx) are ~ 150kb. (+6.7kb for the demo :) Re: Releasing it as a bundle... that could actually be fun! With some kind of demo level chooser... :) Integrating the physics examples it into pippy would be interesting -- my primary goal was to make it easy-to-use and to have examples anyway. I would be up to do that, are there any pygame examples for pippy yet? Best regards! Chris PS: To capture fps to the console in the demos, you can add some variation of this line to the main loop: if event.type == KEYUP and event.unicode == "x": print clock.get_fps() ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Physics with Python and Pygame (Chipmunk 2D Physics Engine)
Chris Hager wrote: > Hey all. > > Recently I did some research on 2D (SDL) physic engines, and found that > one of the most popular (called Chipmunk) with python bindings (pymunk) > recently got an update. I had a look into it, and am totally amazed :) > The chipmunk engine is easy, stable, fast, fun, open-source -- and now > it's getting really possible to use it with python and especially pygame. > Great! I've been playing with chipmunk on the XO a little bit, but nothing really to show off. I was a bit disappointed in the speed of the standard pymunk demo on the XO, but I wasn't sure if it was the physics or just rendering which was slow. What kinds of frame rates are you seeing? J ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Physics with Python and Pygame (Chipmunk 2D Physics Engine)
Hi, > http://wiki.laptop.org/go/Pymunx Wow, how awesome! Do you have an XO to test on? Have you thought about releasing a standalone .xo, or throwing these into Pippy? What are the dependencies and disk usage like for the underlying chipmunk library? Thanks, - Chris. -- Chris Ball <[EMAIL PROTECTED]> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel