Page 1 of 1

hkx2dae: Havok to COLLADA Physics conversion

Posted: Thu Jun 05, 2008 3:11 am
by Erwin Coumans
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
havok_tutorial.jpg
havok_tutorial.jpg (15.64 KiB) Viewed 20475 times
BulletCOLLADAViewer.jpg
BulletCOLLADAViewer.jpg (17.87 KiB) Viewed 20476 times
Enjoy,
Erwin

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Thu Jun 05, 2008 11:14 am
by chrisbo
That was quick! :D

Just tried it out here and it worked fine - nice!

Chris

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Sun Jun 08, 2008 6:58 am
by nafets1218
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!

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Wed Jul 23, 2008 10:47 pm
by Erwin Coumans
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

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Sun Aug 03, 2008 8:09 pm
by Punhey
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!

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Fri Dec 26, 2008 5:33 am
by maeyan
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

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Wed Jan 13, 2010 12:10 am
by vbbartlett
Has there been any update or improvements to the converter or implementation of meshes?

Re: hkx2dae: Havok to COLLADA Physics conversion

Posted: Thu Jan 21, 2010 7:27 am
by Erwin Coumans
It supports meshes with mopp acceceration structures.

Thanks,
Erwin