Export format for scene description

Discuss new features and future development.

Export format for scene description

Postby pwagner » Tue May 03, 2011 1:03 am


Is there any scene description format which chipmunk is able to load/store? I would like to save the whole scene (bodies and shapes with all of their attributes) and resume the calculations at another time or let the user define a scene and load it into chipmunk to calculate the physics.
If nothing already exists maybe you have suggestions for a format?

Best regards
Posts: 21
Joined: Wed Mar 23, 2011 1:59 am

Re: Export format for scene description

Postby slembcke » Tue May 03, 2011 8:23 am

Not currently no. Serialization of an entire space is actually pretty tricky to do. It's on the todo list for Objective-Chipmunk, but it would pretty difficult to the point of being useless to use at the C API level.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Export format for scene description

Postby Beoran » Wed May 04, 2011 7:36 am

You could probably export or import from scalable vector graphics format. That way you can edit the scene with a normal svg editor. You'll have to use some conventions for constraints, such as color, and some shapes you'll have to ignore. I think it's not that hard in Ruby as you get xml parsers for free.
Posts: 19
Joined: Sat Apr 12, 2008 2:02 pm

Return to Features/Development

Who is online

Users browsing this forum: No registered users and 1 guest