Using Algodoo as a tool and not a toy: Better export options
Posted: Fri Jan 18, 2013 1:21 pm
I searched the suggestions subforum for export and format, but i found nothing, so excuse me if this has already been requested.
If algodoo had some sorts of XML export option, that would save shapes and constraints in a easy to exchange XML format, maybe we could use it game development along with the opensource Box2D engine (Could be really useful for level development), I know that Algodoo and Box2D might not be 100% identical, but the differences is small at least in appearence.
The format could be something along with:
Then it would be up to developers to take the initative write parsers.
I guess you could argue that one could just use the existing format, but I think that a more easy to use format is needed for algodoo to be useful.
If algodoo had some sorts of XML export option, that would save shapes and constraints in a easy to exchange XML format, maybe we could use it game development along with the opensource Box2D engine (Could be really useful for level development), I know that Algodoo and Box2D might not be 100% identical, but the differences is small at least in appearence.
The format could be something along with:
- Code: Select all
File structure:
MyExportedSceneName
- scene.xml
- textures
- 0.png
- 1.png
XML Format:
<scene>
<group id="grpNameOrId">
<shape id="0">
<svg>
<!-- SVG XML ? -->
</svg>
<properties>
<!-- Physical propertes goes here,
Density, Mass, Friction, Restitution,Attraction, center of Mass, velocity, position etc. -->
</properties>
<appearance>
<!-- Colour, Texture, texture position, Opacity etc. -->
</appearance>
</shape>
<spring constant="100" damping="0.1" targetlength="0.5">
<for id="0" x="2" y="2" />
<for id="1" x="2" y="2" />
</spring>
<!-- etc. with other constraints -->
</group>
</scene>
Then it would be up to developers to take the initative write parsers.
I guess you could argue that one could just use the existing format, but I think that a more easy to use format is needed for algodoo to be useful.