Join also our Discord channel! Click here.

Diablo 3 Animation files

Post questions about game models here, or help out others!
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3163
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 859 times
Been thanked: 1735 times

Re: Diablo 3 Animation files

Post by shakotay2 » Thu Jan 02, 2014 12:38 pm

ZeroGravity wrote:i use max 2009 and just tested it with adria
all good
Ok, thx. :)
and no bones have diferent count of keyframes
I got the counts from your function app_read_animations
by inserting a Print cmd:
...
for j = 1 to l_num_bones do (
..
xx = app_file_pos ofs ani_file
Print ("keyfr. = " + (an.ani_bones[j].num_keys_rot as string))
for k = 1 to an.ani_bones[j].num_keys_rot do (
..

and the Max script Listener output (see my previous post) tells me that they are different. edit: ok, me dumbo looked at the rotation only... :cry:

edit: will have a look at the translation, wait a minute...

ok; for the position the keyframe count is 2 for all boneIDs (except for boneID1 it's 44)
I'll have to think about this... :cry:

(where does my Max leave the 42 missing frames for the boneIDs 2..40???)

edit2: after deleting front_loinCloth I realized that the walk animation is working pretty well. Seems it's the skinning I've a problem with...
Last edited by shakotay2 on Thu Jan 02, 2014 4:16 pm, edited 1 time in total.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

ZeroGravity
n00b
Posts: 10
Joined: Sat Nov 26, 2011 10:29 pm
Been thanked: 7 times

Re: Diablo 3 Animation files

Post by ZeroGravity » Thu Jan 02, 2014 1:07 pm

http://rghost.ru/51353091
script for 010 editor. out animation file in plain text.
it's old. i write it for open beta diablo 3

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3163
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 859 times
Been thanked: 1735 times

Re: Diablo 3 Animation files

Post by shakotay2 » Thu Jan 02, 2014 1:51 pm

ZeroGravity wrote:script for 010 editor. out animation file in plain text.
thx again! :)

hmm, bt. I'll have to download the 010 editor's demo version -
but I guess it would make more sense to get my Max working again (really hate to reinstall it before knowing which dll plugin ruined it :D ).
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Thu Jan 02, 2014 3:49 pm

@ZeroGravity

I see you use a AssumeSkinePose() and the Inverse methods, need to check them, maybe this could be the problem ...

@Chakotay2,

wel I based my animation knowledge on the second post in this thread by Wobbe, the rest I kinda broke my head on figured it out myself, very satisfying when that chest animated perfectly :p

Please do re-install MAX asap we need you dude !

When I get at home in a couple of hourse I'll post the chest and I'll test ZeroGravity's script

Thanx already guys

T.

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Thu Jan 02, 2014 5:52 pm

Hey Chakotay2, here is the file (chest) your requested with the ani files and the dds files included


Good luck :p

T.
You do not have the required permissions to view the files attached to this post.

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Thu Jan 02, 2014 6:30 pm

YES !! It works!!

Learned some nice stuff from that script Zero Gravity wrote!!

AssumeSkinPose() --> Very important, never heard of it, not very well documented either

matrix.row = b.Pos --> apply the position to the matrix in stead of what I did, only apply the rotation (dumb ass)

with animation on at time <T> in coordsys parent bone.Position = AnimationPosition --> which allows the position of the current bone in reference to the parent, in stead of doing some weird checks and calculations to achieve the right (or wrong) position

but I'm already happy I got this far on my own :)

Thanks a bunch guys

I'll test some more animations and I'll post my adjusted script afterwards

T.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3163
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 859 times
Been thanked: 1735 times

Re: Diablo 3 Animation files

Post by shakotay2 » Thu Jan 02, 2014 7:08 pm

Thx for chest and script! :)
For the chest your script is working like Z.'s adjusted one with my strange Max2013.
(Although it looks like the lower part is moving while the lid doesn't, resp. in the wrong direction.)
Image

btw: for the spelling of my nick see my signature!
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Thu Jan 02, 2014 9:54 pm

Hey Shak-otay ( sorry about the misspelling all the time I just look at your nick above your avatar ) :roll:

Thanks for all the help from you guys I was able to put together the last script ( animation script ) to a good end.

Included in the zip file are 2 scripts, one for importing the .app (3D Model) files and one for the .ani (animation) files

PS: Put the .app file in the texture directory and there is a possible way that the script picks up the correct diffuse texture ( not guaranteed thou)


Please test and any feedback is appreciated!

Cheers

T
You do not have the required permissions to view the files attached to this post.

ZeroGravity
n00b
Posts: 10
Joined: Sat Nov 26, 2011 10:29 pm
Been thanked: 7 times

Re: Diablo 3 Animation files

Post by ZeroGravity » Fri Jan 03, 2014 5:26 pm

update: for now script import model/texture coords/skin/bone/animation/hardpoints, you can add one animation at time, but all anims stored continuous. Pleace give any advice about cloth system in 3dmax
You do not have the required permissions to view the files attached to this post.

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Fri Jan 03, 2014 7:37 pm

Hey ZeroGravity, I've noticed that there are these HardPoints, but I ignored them up till now, what are they exactly?

I only used to test the plugin from Max Cloth when it first came out, don't know how to work with it from code thou.

T.

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Fri Jan 03, 2014 9:22 pm

I changed my Import D3 Ani Script

Added a Helper Dummy that has the animation names, start and end frame, for easy reference

Added a MessageBox that tells you how many frames are imported

Changed so that you no longer need to select the ani file, just select the folder that contains all the ani files you want to apply , limited to 100 ani files.

Added a config file that contains the last selected folder, so you don't need to browse to it every time

So how does it work:

Use the Import D3 App script to import a model

Put all the animation files for that model into a specific folder

Use the Improt D3 Ani script to select that folder and done

Hope you like it, learned a lot from this

and again thanks for the help guys!

T.
You do not have the required permissions to view the files attached to this post.

ZeroGravity
n00b
Posts: 10
Joined: Sat Nov 26, 2011 10:29 pm
Been thanked: 7 times

Re: Diablo 3 Animation files

Post by ZeroGravity » Fri Jan 03, 2014 10:05 pm

about animation files, they contain field with snoAppearence, if you look at my editor script you can filter animation by it and sno in app file, (but applying wrong animation can produse funny effects) and in .tex files exactly same thing you can read header and find right texture. as i see you use BoyC template as reference, normals some times are incorrect, i don't use this, 3dmax handle it by it's own, just try and you have more adequate results. how about patch files? as i think its aplayed after load raw data, and 7F is no apply, but i don't know offset to apply.
best regards to all of you. thanks

ZeroGravity
n00b
Posts: 10
Joined: Sat Nov 26, 2011 10:29 pm
Been thanked: 7 times

Re: Diablo 3 Animation files

Post by ZeroGravity » Fri Jan 03, 2014 10:17 pm

and as i recall in you script app import, you not use rotation for last bone, so you can apply rotation without matrix, just like this bone.rotation = frame[j].rotation, and then positioning... hmmm or inverse rotation, i try many of them :D

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Diablo 3 Animation files

Post by TaylorMouse » Fri Jan 03, 2014 11:46 pm

Created a little script to list the animations, start and end frame, so you don't need to look for them in the list of ani files and figure out where the start and end frame are:

Code: Select all

RollOut dialog "Animation List"
(
	
	Button btnClose "Close"
	ListBox animationList "Animations" Width:400 

	on dialog open do
	(
		prop = GetUserPropBuffer (GetNodeByName "Animations")
		if(prop != undefined) then 
		(

		animationList.Items = filterString prop "\r\n"
		)
	)
	
	on btnClose PRESSED DO
	(
		DestroyDialog dialog
	)
	
	on dialog resized p2 DO
	(
		animationList.height = p2.Y - 50
		animationList.width = p2.X - 20
		
	)
)
clearListener()

utility Diablo3AniList "Diablo III Animation List"
(
	Button btnShowDialog "Show Animations"
	on btnShowDialog PRESSED do
	(
		CreateDialog dialog style:#(#style_titlebar, #style_minimizebox,#style_resizing) width:420
	)

)
T.

ZeroGravity
n00b
Posts: 10
Joined: Sat Nov 26, 2011 10:29 pm
Been thanked: 7 times

Re: Diablo 3 Animation files

Post by ZeroGravity » Wed Jan 15, 2014 9:28 pm

Updated script, now support Reaper of Souls, app/ani versions
UPD: fixed
You do not have the required permissions to view the files attached to this post.

Post Reply