Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Topic started by: doresain on May 21, 2011, 09:33:33 pm

Title: [question] replace animation on character model
Post by: doresain on May 21, 2011, 09:33:33 pm
i find this http://www.youtube.com/user/hareticdeat ... w8DGuOBpuM (http://www.youtube.com/user/hareticdeath#p/u/4/Kw8DGuOBpuM" onclick="window.open(this.href);return false;)  and this http://over-game.org/world-warcraft-mod ... tions.html (http://over-game.org/world-warcraft-model-editing/9250-transfert-danimations.html" onclick="window.open(this.href);return false;) (but i can't speak french) on animation swap between models

i want to create a bloodelf and nightelf with forsaken animation (man and female) to create new scourge alternatives

i work with ubuntu 11.04 and modit doesn't work on wine (i should try to install visual c++ 2008 dll and headers but i won't corrupt my wine install :P)

can someone write the information for bones of bloodelf and nightelf?


example for skeleton
SkeletonMale:
rleg: 5
lleg: 6
rshoulder: 11
lshoulder: 10
head: 9
else: (0,1,2,3,4)

thanks
Title: Re: [question] replace animation on character model
Post by: doresain on May 24, 2011, 03:31:38 pm
i find this http://www.elitepvpers.com/forum/wow-mo ... rting.html (http://www.elitepvpers.com/forum/wow-modelchange-tools-guides/509284-guide-animation-porting.html" onclick="window.open(this.href);return false;) tutorial

i try to import hfemale anim in satyr model

Code: [Select]
#! /usr/bin/python
from m2 import *

from RaceInfo import *





input = HumanFemale

output = Satyr



inName = HumanFemale.M2

outName = Satyr.m2



im2 = M2File(inName)

om2 = M2File(outName)

Code: [Select]
##########################################################

#the 5 following blocks define the porting of different  #

#parts of the anim-skeleton                              #

##########################################################

#r shoulder

if (Dependent(i,om2,8,ic) & Dependent(j,im2,17,jc)) & (Depth(i,om2) == Depth(j,im2)):#check if bone is at the same position on each model

ChangeAnims(i,j) #change model

break # no need to check the other bones anymore

#l shoulder

if (Dependent(i,om2,7,ic) & Dependent(j,im2,16,jc)) & (Depth(i,om2) == Depth(j,im2)):

ChangeAnims(i,j)

break

#r leg

if (Dependent(i,om2,5,ic) & Dependent(j,im2,5,jc)) & (Depth(i,om2) == Depth(j,im2)):

ChangeAnims(i,j)

break

#l leg

if (Dependent(i,om2,4,ic) & Dependent(j,im2,6,jc)) & (Depth(i,om2) == Depth(j,im2)):

ChangeAnims(i,j)

break



#head

if (Dependent(i,om2,15,ic) & Dependent(j,im2,20,jc)) & (Depth(i,om2) == Depth(j,im2)):

ChangeAnims(i,j)

break



#the other bones

but don't work (no errors and no change on satyr.m2)
can someone help me?
satyr looks good with armor (no shoulder or helm) but need some basic animation like mount sit sleep etc etc
(http://img580.imageshack.us/img580/9214/satyr.jpg) (http://img580.imageshack.us/i/satyr.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: [question] replace animation on character model
Post by: gorq on June 12, 2011, 10:32:05 pm
I have used animporter and change/add scripts from pym2 repository. Animporter seems to not work ok but u should use changeanimations.py instead.it has worked for me but u can only swap existing anims or add a solo new one.

Tell me if u need help to use them.

Satyr model is fantastic.it is almost alike a nelf. I want to make it playable too :D i have tried with animporter (all anims bad) but i have to test with scripts. Ill post the results
Title: Re: [question] replace animation on character model
Post by: doresain on June 12, 2011, 11:17:57 pm
for me this way doesn't work well (i got a very buggy animated model)
it's more simple (for me) to replace animation with blender and m2mod.exe, but you must remap all boneket added to the vertex , i'll make a try soon!
ps. with m2mod and blender toy can see real bone tree of model fith real place of bones, and you can understand the real bonetree and bones to replace in animationport script
Title: Re: [question] replace animation on character model
Post by: gorq on June 13, 2011, 12:16:52 am
I use modit to see and compare bones.i will see it in blender, thx