[ODE] c++ xode parsing anad dumping

John Donovan JohnD at MagentaSoftware.com
Wed Aug 31 16:35:50 MST 2005


> I need to write a program that read xode file and i would like to know
if there is a standard reader to use as base. 

It depends on the language you're coding in. The reference
implementation is in Java, and I've written a C++ one. If you're using
C++, then I can send you my code, but there's a bunch of work left to
do. Also, my reader is integrated with OSG, but it shouldn't be too hard
to extract the stuff you need. Eventually the code should be flexible,
full-featured, and stable, then I'll publically release it, but until
then you're welcome to use it as a base for your own reader.


> The other question is if anyone has tried to dump a ode world to an
xode file.

I'm not sure if that's possible, because ODE doesn't give you access to
its tree. So you can call dBodyCreate(my_world) but there's no
dWorldGetBodies() function. The only way I can think of is to have your
own tree of ODE objects (which are just opaque pointers), and dump that.

-J

The content of this message and any attached file are confidential and/or privileged and are for the intended recipient only. If you are not the intended recipient, any unauthorised use, disclosure, copying, distribution or other dissemination is strictly prohibited. If you receive this message in error please notify the sender immediately by email, telephone or fax and then delete this email. Any attachment with this message should be checked for viruses before it is opened. Magenta Software Limited cannot be held responsible for any failure by the recipient to check for viruses before opening any attachment. Copyright in this email and attachments created by us belongs to Magenta Software Limited. Should you communicate with anyone at Magenta Software Limited by email you consent to us monitoring and reading any such correspondence. 






More information about the ODE mailing list