Here is a few hours worth of work towards a conversion from Havok .hkx to COLLADA .dae Physics, using BulletColladaConverter.
Usage:
Start the demo Common/Api/Serialize/Simple Load/Binary to convert inputfile.hkx
Input has be to called inputfile.hkx, output will be havokToCollada
Drag the .dae file over ReleaseColladaDemo.exe to view results.
It has limited features, only converts sphere,box,convex, mopp shape, and a limited hinge constraint.
http://www.bulletphysics.com/ftp/pub/te ... e-0.01.zip (8Mb zipfile)
The zipfile includes a converted version of the HavokMayaModules\2008\Tutorials\PhysicsBasics\tutorialEnd.mb
Enjoy,
Erwin
hkx2dae: Havok to COLLADA Physics conversion
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
hkx2dae: Havok to COLLADA Physics conversion
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2
- Joined: Wed Jun 04, 2008 9:34 am
Re: hkx2dae: Havok to COLLADA Physics conversion
That was quick!
Just tried it out here and it worked fine - nice!
Chris

Just tried it out here and it worked fine - nice!
Chris
-
- Posts: 1
- Joined: Sun Jun 08, 2008 4:00 am
Re: hkx2dae: Havok to COLLADA Physics conversion
I'm really sorry to ask this with all the work you've done, is there a way to reverse this process and output a hkx file? If it is simple enough I could program it on my own time. Eventually it would be cool to import/export both file types with the same program, and that the files could have any name!
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: hkx2dae: Havok to COLLADA Physics conversion
Yes, it would be fairly straight forward to create a dae2hkx conversion too.
I'm just curious, what tool are you using to generate those dae files?
Thanks,
Erwin
I'm just curious, what tool are you using to generate those dae files?
Thanks,
Erwin
-
- Posts: 7
- Joined: Wed Jul 23, 2008 3:25 am
Re: hkx2dae: Havok to COLLADA Physics conversion
I too am interested in being able to output hkx files. Though not necessarily from dae. I know it may sound silly, but I use Milkshape and would like the ability to export to hkx from there but I can't seem to find any resources that give the hkx file format specification. Do you happen to have that information? With it, I could write a plug-in for Milkshape.
Thanks!
Thanks!
-
- Posts: 1
- Joined: Fri Dec 26, 2008 2:51 am
Re: hkx2dae: Havok to COLLADA Physics conversion
Hey there,
I am interested in further developing this tool personally because I am in need of it for my project. (I have a entire library of Havok hkx's I want ported to COLLADA for use with the the Bullet Physics engine).
The source code looks good and but is in need of completion which I am willing to do. I have a few questions:
Your code creates most of the common Havok shapes into Bullet ones. My Havok files contain extra data types like skeletions, animations, bindings, attachments and skins. At present, these data types arn't handled? I would like to add this in but I could use your help, just simple starting braces with more //TODO notes would do. I will use the Havok and Bullet documentation to fill in the rest.
Please correct if I am way off track here!
Many thanks in advance, Sam
I am interested in further developing this tool personally because I am in need of it for my project. (I have a entire library of Havok hkx's I want ported to COLLADA for use with the the Bullet Physics engine).
The source code looks good and but is in need of completion which I am willing to do. I have a few questions:
Your code creates most of the common Havok shapes into Bullet ones. My Havok files contain extra data types like skeletions, animations, bindings, attachments and skins. At present, these data types arn't handled? I would like to add this in but I could use your help, just simple starting braces with more //TODO notes would do. I will use the Havok and Bullet documentation to fill in the rest.
Please correct if I am way off track here!

Many thanks in advance, Sam
-
- Posts: 1
- Joined: Thu Jan 07, 2010 10:08 pm
Re: hkx2dae: Havok to COLLADA Physics conversion
Has there been any update or improvements to the converter or implementation of meshes?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: hkx2dae: Havok to COLLADA Physics conversion
It supports meshes with mopp acceceration structures.
Thanks,
Erwin
Thanks,
Erwin