Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Havok binary files
-
- mega-veteran
- Posts: 177
- Joined: Wed Mar 02, 2011 10:38 pm
- Has thanked: 10 times
- Been thanked: 58 times
Re: Havok binary files
Sorry I forgot to check back. I converted the files to a custom animation type then bvh then imported to Motion Builder 2012 then fbx.
Long winded.
Can I post my code instead of looking at the files? I will also try looking at the files
Long winded.
Can I post my code instead of looking at the files? I will also try looking at the files
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
-
- mega-veteran
- Posts: 177
- Joined: Wed Mar 02, 2011 10:38 pm
- Has thanked: 10 times
- Been thanked: 58 times
Re: Havok binary files
I am assuming you can compile and run the havok sdk demo
Also assuming BrawlerA.hkx is the name of your skeleton file?
It is a long piece of code but you only need minimal adjustment
You can also change the conversion type
The compile time might be a bit long as we are re-purposing their demo project
replace
code here
I will get vS2012 in the mean time and test it myself
Also assuming BrawlerA.hkx is the name of your skeleton file?
It is a long piece of code but you only need minimal adjustment
You can also change the conversion type
The compile time might be a bit long as we are re-purposing their demo project
replace
with thisD:\hk2014_1_0_r1\Demo\Demos\Animation\Api\Playback\AnimatedSkeleton\AnimatedSkeletonDemo.cpp
code here
Code: Select all
//line 1260
hkStringBuf assetFile("BrawlerA.hkx"); //loads skeleton
//line 1276
ofstream ofile("BrawlerA.skel", ios::binary); //saves skeleton in new format
//Line 1313 - 1316 (Read anim directory and create export folder)
char outfile[MAX_PATH] = "F:/inAnimations/"; //Our animation folder
strcat(outfile,animfile.c_str());
char workdir[MAX_PATH] = "F:/OutAnimations/"; //output folder
strcat(workdir,animfile.c_str());
Code: Select all
//.h file
class AnimatedSkeletonDemo : public hkDefaultAnimationDemo
{
public:
HK_DECLARE_CLASS_ALLOCATOR( HK_MEMORY_CLASS_DEMO );
AnimatedSkeletonDemo( hkDemoEnvironment* env );
~AnimatedSkeletonDemo();
Result stepDemo();
private:
class hkLoader* m_loader;
class hkaSkeleton* m_skeleton;
class hkaAnimation* m_animation;
class hkaAnimationBinding* m_binding;
hkArray<class hkaAnimatedSkeleton*> m_activeSkeletons;
};
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
Re: Havok binary files
I cannot unfortunately. All my stuff is set up for Java, not C++.JohnHudeski wrote:I am assuming you can compile and run the havok sdk demo
Also, where exactly is the sdk demo located? Now that university is finally over I have a lot more time, I can probably get Visual Studio up and running soon.
-
- mega-veteran
- Posts: 177
- Joined: Wed Mar 02, 2011 10:38 pm
- Has thanked: 10 times
- Been thanked: 58 times
- shakotay2
- MEGAVETERAN
- Posts: 4291
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1151 times
- Been thanked: 2244 times
Re: Havok binary files
yep. But it's very likely that it's not a matter of using the SDK but a matter of how hkx format was modified by SleepingDogs devs.JohnHudeski wrote:I am assuming you can compile and run the havok sdk demo
Also assuming BrawlerA.hkx is the name of your skeleton file?
BrawlerA.hkx can not be loaded, as simple as that. (And I've no interest to debug the problem due to some missing sources as said above.)
@SergeantJoe: remember what I said (post as of May 19th) about recreating hkx using Havok Content Tools with 3dsmax?
Why not use the BrawlerA smd for it? Then compare the headers of the created hkx with the one of the unloadable SD BrawlerA hkx?
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
Re: Havok binary files
Yup, I haven't forgotten about that! Like I said I have a lot more time now so I should have those ready today or tomorrow.
- shakotay2
- MEGAVETERAN
- Posts: 4291
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1151 times
- Been thanked: 2244 times
Re: Havok binary files
accidentally I managed to do it, but the created file is an hkt, not hkx:
This might be caused by the fact that I imported the BrawlerA smd from this thread into blender,
exported as FBX and reimported to max before using the HavokContentTools plugin.
(the hkt version is said to be hk_2013.1.0-r1 - dunno how to make a .2.0-r1 of it.)
(maybe 1.0= hkt, 2.0= hkx?)
Also for some reason the skeleton is not visible in the standalone tool (ToolStandAlone.exe).This might be caused by the fact that I imported the BrawlerA smd from this thread into blender,
exported as FBX and reimported to max before using the HavokContentTools plugin.
(the hkt version is said to be hk_2013.1.0-r1 - dunno how to make a .2.0-r1 of it.)
(maybe 1.0= hkt, 2.0= hkx?)
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
Re: Havok binary files
I'm pretty sure 2013.1.0 is the version number of the tools. If you look on the download page they have 2012.1.0 and 2012.2.0,but interestingly enough no 2013.2.0.
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
Re: Havok binary files
Okay, so. I got the content tools, but I can't seem to export anything properly. There's all sorts of garbage in the file, but no actual animation info even though it's in the view XML modifier.
Also, to get an hkx you need to select Packfile in Write to Platform.
Also, to get an hkx you need to select Packfile in Write to Platform.
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
Re: Havok binary files
I got the SDK and VS set up, but I'll need john to give some more details.
I sent him a PM, but until he comes back we gotta figure this out. I got myself an hkx file, but it seems to be creating model and skeleton files, not animations.
I sent him a PM, but until he comes back we gotta figure this out. I got myself an hkx file, but it seems to be creating model and skeleton files, not animations.
-
- mega-veteran
- Posts: 177
- Joined: Wed Mar 02, 2011 10:38 pm
- Has thanked: 10 times
- Been thanked: 58 times
Re: Havok binary files
Sorry I've been away (battling being broke and the blues lol)
If you have a detailed animation format of choice that is easy to replicate (basically good documentation)
I will attempt a conversion tomorrow (Saturday)
If you have a detailed animation format of choice that is easy to replicate (basically good documentation)
I will attempt a conversion tomorrow (Saturday)
-
- mega-veteran
- Posts: 242
- Joined: Fri Aug 30, 2013 5:39 am
- Has thanked: 57 times
- Been thanked: 20 times
Re: Havok binary files
I already said this in my PM but I'll say it again here so people can see: Source Engine SMD is easily the best format out there for this situation.
It's very simple, and is stored in plain ASCII to boot. It can contain mesh, UVs, bones, weights, and animations, all in the same file.
Plus every major 3D software already has plugins for it. That includes the big 3 - Blender/Max/Maya.
It's very simple, and is stored in plain ASCII to boot. It can contain mesh, UVs, bones, weights, and animations, all in the same file.
Plus every major 3D software already has plugins for it. That includes the big 3 - Blender/Max/Maya.
- shakotay2
- MEGAVETERAN
- Posts: 4291
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1151 times
- Been thanked: 2244 times
Re: Havok binary files
don't know what you did exactly but if you load a skeleton and its animation into 3dsmax an hkx export should be possible.SergeantJoe wrote:Okay, so. I got the content tools, but I can't seem to export anything properly. There's all sorts of garbage in the file, but no actual animation info even though it's in the view XML modifier.
I tried Adria and her walking animation and exported it spline compressed correctly.
Only problem I have is that I didn't manage to export the skeleton and the animation seperately -
they are in one hkx file: (minor problem: how to get rid of the collision sphere?)
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"