Exporter?
-
Hello -
Is there an exporter available for SketchyPhysics[2]?
I really would love to use SketchUp and SketchyPhysics as my main content creation tool for some games.
However, it seems that there is no exporter. Thus, we can only play around in SketchUp.
The features of such an exporter would be:
- export mesh geometry to some generic format
- export physics attributes for each object
- export joint information
- etc
Perhaps export all this information to XML, some intermediate representation. Converters could be written that take this XML as input allowing conversion to whatever format you need for your game/simulation/etc.
Currently, I've a billiards game that uses Newton Dynamics for physics. The model of the billiards table was created in SketchUp and exported using a Ruby plugin to an Ogre mesh. However, all of the billiard balls and their physical attributes were created in code, which was tedious!
Being able to preview how a scene will behave without the painful iterations for parameter tweaking in code/data would be ideal.
Any plans for such an exporter?
-
I have been asked about making a Collada exporter. In theory it would work. But the problem is SP uses several custom joints that would not have a equivalent in whatever physics engine finally imported the data. So the basic shapes might work. But nothing more complex than maybe a hinge would work right.
That said you could probably modify the Ruby plugin you are using to include some of the SketchyPhysics data if there is an physics import for Ogre. I know nothing about Ogre.
All of the SketchyPhysics data is just stored in attributes on each group.
Chris
@brian.hammond said:
Hello -
Is there an exporter available for SketchyPhysics[2]?
I really would love to use SketchUp and SketchyPhysics as my main content creation tool for some games.
However, it seems that there is no exporter. Thus, we can only play around in SketchUp.
The features of such an exporter would be:
- export mesh geometry to some generic format
- export physics attributes for each object
- export joint information
- etc
Perhaps export all this information to XML, some intermediate representation. Converters could be written that take this XML as input allowing conversion to whatever format you need for your game/simulation/etc.
Currently, I've a billiards game that uses Newton Dynamics for physics. The model of the billiards table was created in SketchUp and exported using a Ruby plugin to an Ogre mesh. However, all of the billiard balls and their physical attributes were created in code, which was tedious!
Being able to preview how a scene will behave without the painful iterations for parameter tweaking in code/data would be ideal.
Any plans for such an exporter?
-
Yeah I see... I might look into this myself sometime in July but I'm not sure yet.
Are the custom joints documented well enough? I use Newton myself so this would not be too bad to integrate. For example, I already use a dry rolling friction custom joint for the billiard balls in my game.
Thanks
Advertisement