Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Jun 05, 2008 3:11 am 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3895
Location: California, USA
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

Attachment:
havok_tutorial.jpg
havok_tutorial.jpg [ 15.64 KiB | Viewed 7903 times ]

Attachment:
BulletCOLLADAViewer.jpg
BulletCOLLADAViewer.jpg [ 17.87 KiB | Viewed 7904 times ]


Enjoy,
Erwin


Top
 Profile  
 
PostPosted: Thu Jun 05, 2008 11:14 am 
Offline

Joined: Wed Jun 04, 2008 9:34 am
Posts: 2
That was quick! :D

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

Chris


Top
 Profile  
 
PostPosted: Sun Jun 08, 2008 6:58 am 
Offline

Joined: Sun Jun 08, 2008 4:00 am
Posts: 1
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!


Top
 Profile  
 
PostPosted: Wed Jul 23, 2008 10:47 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3895
Location: California, USA
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


Top
 Profile  
 
PostPosted: Sun Aug 03, 2008 8:09 pm 
Offline

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


Top
 Profile  
 
PostPosted: Fri Dec 26, 2008 5:33 am 
Offline

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


Top
 Profile  
 
PostPosted: Wed Jan 13, 2010 12:10 am 
Offline

Joined: Thu Jan 07, 2010 10:08 pm
Posts: 1
Has there been any update or improvements to the converter or implementation of meshes?


Top
 Profile  
 
PostPosted: Thu Jan 21, 2010 7:27 am 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3895
Location: California, USA
It supports meshes with mopp acceceration structures.

Thanks,
Erwin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group