hkx2dae: Havok to COLLADA Physics conversion

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

hkx2dae: Havok to COLLADA Physics conversion

Post 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 20482 times
BulletCOLLADAViewer.jpg
BulletCOLLADAViewer.jpg (17.87 KiB) Viewed 20483 times
Enjoy,
Erwin
chrisbo
Posts: 2
Joined: Wed Jun 04, 2008 9:34 am

Re: hkx2dae: Havok to COLLADA Physics conversion

Post by chrisbo »

That was quick! :D

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

Chris
nafets1218
Posts: 1
Joined: Sun Jun 08, 2008 4:00 am

Re: hkx2dae: Havok to COLLADA Physics conversion

Post 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!
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: hkx2dae: Havok to COLLADA Physics conversion

Post 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
Punhey
Posts: 7
Joined: Wed Jul 23, 2008 3:25 am

Re: hkx2dae: Havok to COLLADA Physics conversion

Post 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!
maeyan
Posts: 1
Joined: Fri Dec 26, 2008 2:51 am

Re: hkx2dae: Havok to COLLADA Physics conversion

Post 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
vbbartlett
Posts: 1
Joined: Thu Jan 07, 2010 10:08 pm

Re: hkx2dae: Havok to COLLADA Physics conversion

Post by vbbartlett »

Has there been any update or improvements to the converter or implementation of meshes?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: hkx2dae: Havok to COLLADA Physics conversion

Post by Erwin Coumans »

It supports meshes with mopp acceceration structures.

Thanks,
Erwin
Post Reply