Hello.
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
Export format for scene description
-
- Posts: 21
- Joined: Wed Mar 23, 2011 1:59 am
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Export format for scene description
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 19
- Joined: Sat Apr 12, 2008 2:02 pm
- Contact:
Re: Export format for scene description
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.
Who is online
Users browsing this forum: No registered users and 4 guests