Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 6 - The New Beginning > Thread: Extracting models from H6
Thread: Extracting models from H6 This thread is 2 pages long: 1 2 · NEXT»
Kwarc
Kwarc


Adventuring Hero
posted April 22, 2016 10:14 AM
Edited by Kwarc at 10:25, 22 Apr 2016.

Extracting models from H6

Hello, some of you probably already know that I found a way to export models from H6. Usage is very simple. Firstly we have to extract models from Data1.orc and textures from Data5.orc or Data6.orc using Orc2zip. And then we can open them with Noesis (it need Demonsangel's script in plugins/script folder). That's all. As you can see, meshes and skeletons are perfectly extracted. But there there are no animations. Method that reads them readAnimation() is partialy implemented, but it have to be finished. So there is a question for you. Who want to help me with this problem?



Some useful links:
1) Orc2zip
2) Noesis
3) Demonsangel's script
4) Another script, but less complex
5) Example script for Noesis
6) Discussion about Demonsangel's script

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Articun
Articun


Supreme Hero
As i dream, so shall it be!
posted April 22, 2016 10:25 AM

I really hope someone comes forth for this
I wish you good luck!!!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted April 22, 2016 10:42 AM

I've almost forgot. If you change value of DEBUGANIM in script to True, program will enlist readed animation data into textfiles. They have this structure:

Quote:
###############
### Bone 0 ###
###############
block: 0
block: 1
block: 2
block: 3
block: 4
block: 5
block: 6
Frame: 0    , vector: 0.000031, 0.000000, 0.000000
block: 7
Frame: 0    , vector: 0.000031, 0.000000, 0.000000

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
foxxxer
foxxxer


Promising
Famous Hero
posted April 22, 2016 07:01 PM
Edited by foxxxer at 19:05, 22 Apr 2016.

Kwarc said:
###############
### Bone 0 ###
###############
block: 0
block: 1
block: 2
block: 3
block: 4
block: 5
block: 6
Frame: 0    , vector: 0.000031, 0.000000, 0.000000
block: 7
Frame: 0    , vector: 0.000031, 0.000000, 0.000000


@Kwarc, did you manage to extract bones along with the mesh because this above looks like coordinates (x=0.000031, y=0.000000, z=0.000000) of "Bone 0" at frame 0. It looks like this "Bone 0" is static through the whole animation which bugs me a bit. I hope that some info didn't get lost during the extraction to *.anm file. If you open Phoenix_Ability.anm you can see that there are no coordites for some bones for instance from 8 to 19. They might be unused, who knows. For some others you can see how the bone change its posiotion in the space (check the end of my post).

Also, is there someone among your friends who work in Maya (I don't know if you saw my PM to you so I'm gonna post it here). Some people here claim that older versions of Maya (2010-2012) open *.anm files. If it's possible then the animations can be converted to some more "normal" format. But even if you manage to convert the animation still requires bones.

Phoenix_Ability said:


***

###############
### Bone 3 ###
###############
block: 0
Frame: 0    , vector: 0.000003, 0.000000, 0.000000
block: 1
block: 2
block: 3
Frame: 0    , vector: -0.000001, 0.000000, 0.000000
Frame: 15   , vector: -0.000001, 0.000000, 0.000000
Frame: 16   , vector: -0.000001, 0.000000, 0.000000
Frame: 18   , vector: -0.000001, 0.000000, 0.000000
Frame: 20   , vector: -0.000000, 0.000000, 0.000000
Frame: 24   , vector: 0.000001, 0.000000, 0.000000
Frame: 26   , vector: 0.000001, 0.000000, 0.000000
Frame: 27   , vector: 0.000001, 0.000000, 0.000000
Frame: 28   , vector: 0.000001, 0.000000, 0.000000
Frame: 51   , vector: -0.000002, 0.000000, 0.000000
Frame: 64   , vector: -0.000001, -0.000000, 0.000000
Frame: 89   , vector: -0.000001, 0.000000, 0.000000
Frame: 113  , vector: -0.000001, 0.000000, 0.000000
block: 4
Frame: 0    , vector: 0.000001, 0.000000, 0.000000
Frame: 13   , vector: 0.000001, 0.000000, 0.000000
Frame: 25   , vector: 0.000002, -0.000000, 0.000000
Frame: 57   , vector: 0.000001, 0.000000, 0.000000
Frame: 82   , vector: 0.000001, -0.000000, 0.000000
Frame: 111  , vector: 0.000001, -0.000000, 0.000000
Frame: 113  , vector: 0.000001, 0.000000, 0.000000
block: 5
Frame: 0    , vector: -0.000012, 0.000000, 0.000000
Frame: 6    , vector: -0.000012, -0.000000, -0.000000
Frame: 7    , vector: -0.000012, -0.000000, -0.000000
Frame: 10   , vector: -0.000013, -0.000000, -0.000000
Frame: 11   , vector: -0.000013, -0.000000, 0.000000
Frame: 12   , vector: -0.000013, 0.000000, 0.000000
Frame: 13   , vector: -0.000012, 0.000000, 0.000001
Frame: 14   , vector: -0.000012, 0.000001, 0.000001
Frame: 15   , vector: -0.000011, 0.000001, 0.000001
Frame: 16   , vector: -0.000010, 0.000001, 0.000001
Frame: 17   , vector: -0.000009, 0.000001, 0.000001
Frame: 19   , vector: -0.000007, 0.000001, 0.000001
Frame: 21   , vector: -0.000005, 0.000001, 0.000001
Frame: 22   , vector: -0.000004, 0.000001, 0.000001
Frame: 23   , vector: -0.000003, 0.000001, 0.000001
Frame: 24   , vector: -0.000002, 0.000001, 0.000001
Frame: 25   , vector: -0.000002, 0.000001, 0.000000
Frame: 26   , vector: -0.000001, 0.000000, 0.000000
Frame: 27   , vector: -0.000001, 0.000000, 0.000000
Frame: 59   , vector: -0.000001, 0.000000, 0.000000
Frame: 62   , vector: -0.000001, 0.000000, 0.000000
Frame: 63   , vector: -0.000001, 0.000000, 0.000000
Frame: 65   , vector: -0.000001, 0.000000, 0.000000
Frame: 69   , vector: 0.000000, 0.000000, 0.000000
Frame: 71   , vector: 0.000001, 0.000000, 0.000000
Frame: 72   , vector: 0.000001, 0.000000, -0.000000
Frame: 73   , vector: 0.000001, -0.000000, -0.000000
Frame: 75   , vector: 0.000001, -0.000000, -0.000000
Frame: 79   , vector: -0.000000, -0.000000, -0.000000
Frame: 81   , vector: -0.000001, -0.000000, -0.000000
Frame: 82   , vector: -0.000001, -0.000000, 0.000000
Frame: 84   , vector: -0.000000, 0.000000, 0.000000
Frame: 98   , vector: 0.000002, 0.000000, 0.000000
Frame: 113  , vector: 0.000002, 0.000000, 0.000000
block: 6
Frame: 0    , vector: 0.000028, 0.000000, 0.000000
Frame: 7    , vector: 0.000028, -0.000000, -0.000000
Frame: 10   , vector: 0.000028, -0.000000, -0.000000
Frame: 11   , vector: 0.000028, -0.000000, 0.000000
Frame: 12   , vector: 0.000028, 0.000000, 0.000000
Frame: 13   , vector: 0.000028, 0.000000, 0.000000
Frame: 15   , vector: 0.000028, 0.000000, 0.000000
Frame: 18   , vector: 0.000029, 0.000000, 0.000000
Frame: 20   , vector: 0.000030, 0.000000, 0.000000
Frame: 22   , vector: 0.000030, 0.000000, 0.000000
Frame: 32   , vector: 0.000030, 0.000000, 0.000000
Frame: 62   , vector: 0.000030, 0.000000, 0.000000
Frame: 93   , vector: 0.000030, -0.000000, -0.000000
Frame: 113  , vector: 0.000030, -0.000000, 0.000000
block: 7
Frame: 0    , vector: 0.000031, 0.000000, 0.000000


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted April 22, 2016 07:44 PM

Yes, I've extracted bones. You can see them on the screen (red lines). You are saying that this vector shows us x, y, z position? Maybe, but what about rotations etc.?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
foxxxer
foxxxer


Promising
Famous Hero
posted April 22, 2016 08:59 PM

Kwarc said:
Yes, I've extracted bones. You can see them on the screen (red lines). You are saying that this vector shows us x, y, z position? Maybe, but what about rotations etc.?


I'm not sure just looks like those are coordinates. I don't know about the rotations. The other thing that bugs me is those blocks- what are they in reality?

Can you share the mesh with bones in some format compatible with 3ds MAX. If I have time during the weekend I can play a bit.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted April 22, 2016 09:29 PM

Of course, here they are. Do you want .anm files too?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
foxxxer
foxxxer


Promising
Famous Hero
posted April 22, 2016 09:38 PM
Edited by foxxxer at 21:48, 22 Apr 2016.

Kwarc said:
Of course, here they are. Do you want .anm files too?


Yes, please! Most likely during the weekend I'm gonna install Maya and try to match the models, bones and animations even though I have 0 experience with Maya. It shouldn't be much different from 3ds max.

EDIT
@Kwarc, there are no bones for Kirin neither for the catapult in the files you shared.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted April 22, 2016 10:01 PM

Strange... how about this? About .anm files. I guess that in this case extension doesn't tell us anything, they are just plain text, but sure... try, maybe I'm wrong

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
foxxxer
foxxxer


Promising
Famous Hero
posted April 22, 2016 10:14 PM
Edited by foxxxer at 22:15, 22 Apr 2016.

Yeah, .fbx is fine.

And as far as I can see the number of the bones (88) matches the numbers in .amn files.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted April 23, 2016 01:36 PM

And how is the progress? I was thinking and maybe in that vector we don't have position, by movement in x, y and z axis? And block? Maybe they have to start/end together or something?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
foxxxer
foxxxer


Promising
Famous Hero
posted April 23, 2016 07:28 PM
Edited by foxxxer at 19:38, 23 Apr 2016.

It didn't work. That's the message Maya shows: // Error: Error reading file.. The basic build of Maya doesn't import .anm files so I had to install Riot File Translator which deals with .skn, .skl and .anm files but the result is clear. I think you're right, Noesis just make arbitrary extension of the exported files. I guess there should be created script to convert those files but I don’t have any coding skills. Also I think the values in "vector" section are smaller at least 5 orders and the worst part is it looks like they are rounded. Of course if those values are coordinates. But there should be some information about the position of the bones through the animation.

Kwarc said:
Maybe they have to start/end together or something?
They shouldn't. That's why I think Noesis rounds the values. First the program makes very small value (like 0.000001***) and then rounds it (0.000001). If you open the mesh (Kirin) and create a box in which the Kirin would fit (without the tail) the dimensions are as follows: Length= 0.82, Width=0.23 and Height=0.69. So if the "vector" section shows the positions it's not gonna be seen any noticeable Kirin movement.

It’s really pity as everything else looks fine: mesh, bones and UV mapping. I created new normal texture for the Kirin so it may be helpful if you find a way to “translate” the stupid .anm files. Really disappointing for such majestic creature…



 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted April 23, 2016 08:13 PM

Damn... That's not good. It we nad it, we could transfer whole fractions to H7. But there is always a way... we fan just recreate animations, but... I'm not good at it.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Articun
Articun


Supreme Hero
As i dream, so shall it be!
posted April 23, 2016 08:37 PM

Can i suggest you start with Necropolis and Inferno units? I mean, in order to make a true Necropolis Faction for heroes VII we do need the Ghoul, Old Lich and Namtaru.

Old Lich could be named Acolyte/Neophyte and be an alternative to the spider for those that don't like it and Ghoul could be an alternative to either skeletons or Ghosts. The Namtaru (preferable with both its forms or just one of the two) can be the alternative to Vampires.

From Inferno, the Pit Lords and Tormentors could be good additions to what we have now.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
foxxxer
foxxxer


Promising
Famous Hero
posted April 24, 2016 01:59 PM

@Kwarc
I might be wrong; it's just a guessing about the rounding of the values. As I said I have 0 coding skills, it's just the code looks like that to me - bones, frames etc. Do you have any control over the code before extract the files. I mean, can you force Noesis to make the vector values bigger (0.000001*** -> 0.1***) so we can see if there are some digits after "1". I'm not familiar with Noesis yet, I barely managed to export the basic Faceless model and bones. I tried to use H7 Faceless (which is H6 Faceless upgrade) animation and applied it to the H6 basic model. It didn't work, I guess because the bones' names are different, also H7 model scale is like over 100 times bigger. I suppose it would work if the bones are renamed but the amount is crazy, like 250 or so and have to be careful to match name of H7-bone to H6-bone. Another approach would be to rescale H6 model and use H7 bones but this is even more tiresome as bones affect areas should be repaint. You have to make a screenshot of the H7 model affect area for every single bone then repaint the H6 model. It would be very slow process.

@Articun
It doesn’t matter which faction would be first. The problem is the animation. It would be a matter of days or weeks top to implement almost all H6 critters in H7 if we had animations.

@MODS
IMO this thread should be moved in “Heroes 7 - Falcon's Last Flight” section as the aim is creatures' implementation in H7

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Maurice
Maurice

Hero of Order
Part of the furniture
posted April 25, 2016 12:37 AM

foxxxer said:
@MODS
IMO this thread should be moved in “Heroes 7 - Falcon's Last Flight” section as the aim is creatures' implementation in H7



I tend to agree somewhat, but since the actual extraction specifically looks at H6, I've decided to let it stay in the H6 forums for now.

If the OP feels it should be in H7 instead, I will move it for him.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kayna
Kayna


Supreme Hero
posted August 01, 2016 10:59 PM
Edited by Kayna at 23:21, 01 Aug 2016.

Is there a way to export stuff from Neosis to Blender ? 3d mesh? Or can I export what is extracted to blender right away? How can I turn these .gobj into basic .obj or other format that can be imported in blender?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kwarc
Kwarc


Adventuring Hero
posted August 06, 2016 04:49 PM

You can choose file format in Noesis

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
niven
niven


Hired Hero
Lord Niven(cz)
posted May 25, 2017 08:38 PM

Have you already figured it out? 3D Max could handle .anm files. If it passes through it, we'll get it to H7! Especially inferno - I miss it in heroes 7.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Legendary Hero
Modding the Unmoddable
posted August 31, 2017 10:17 PM

Seems that the project is dead. Sad. The last idea had potential (said by a 3d modelling outsider :V)
____________
Never changing = never improving

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0569 seconds