A little help on exporting object positions

itekimasu

08-04-2009 19:49:06

Hi everyone,

I'm working with a team on a games project. I sent one of the team members the oFusion libraries and suggested they use it for the world loading but unbeknownst to me (and to my intense frustration), they have gone off and created their own world/scene format with a different xml layout- and they didn't make an exporter to actually export this document from 3d studio. This would mean that the ofusion scene file would need to be edited into the new format every single time we change the scene and re-export it.

I can't seem to find any information online about writing an exporting script, I am hoping some kind person could give me a couple of pointers on how to export object positions/rotation to a file similar to an ofusion scene file? Or if anyone knows of any resources for learning how to do this that would be swell also.

Thanks a lot for your time.

Lioric

13-04-2009 04:27:01

If you are using the oFusion Pro version, then you can simply use the Custom Scene SDK to create a library that will export your own scene format automatically

Or if you prefer you can use the Extended Scene SDK if your scene has a similar xml data as the OSM scenes, you can easily write an extended osm scene library that will produce the scenes with your own data (simply extened only the parts that you need, as the entitites or nodes, or the xml hierarchy, or whatever you need to extend with your custom data)

Other solutions include to use maxscript to load the OSM scenes, parse the xml data and produce your own custom scene, you can automate this step (see the oFusion "Export" macroscript, or "The Batch Interface" chapter in the User's Guide) for this to be automatically processed after each OSM scene exported

itekimasu

25-04-2009 03:35:24

Lioric, thanks for your answer. Where do you find the custom scene sdk? I'm using the pro version.

Evak

25-04-2009 06:04:04

I was wondering about the custom scene sdk too. I saw some brief instructions on custom data in the help. But can't find an SDK anywhere.

A dotScene export option would be very handy for us artists that take on contract work. I actually am forced to use Ogremax at the moment for my current contract ogre project since I have no say in the actual coding side and which scene format I get to use. Were using OSM as the primary scene format for all our own projects like flow.

itekimasu

26-04-2009 02:47:05

Yes, it is very frustrating. Using standard oFusion would have been fine but this guy just had to make his own format, even if he didn't know how to make an exporter for it.

I hope somebody knows where the sdk is, I can't seem to find anything about it beyond a brief mention on the ofusion website.

Lioric

29-04-2009 17:30:03

The Custom and Extended Scene File Format SDK is avaialble is available from your account page, its very easy to create custom file format libraries to produce your own scenes or to just simply extend OSM scene with your own data or modify the XML data

Use the latest hotfix for the updated SDK

Note: The current SDK is only compatible with the 1.9.70 version (hotfix #370oECMS) and up

Evak

02-05-2009 06:56:02

Thanks Lioric. Any idea when the next significant ofusion pro release will be? eg.Particles, shaderFX and GL compatible shader support.