This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [question] replace animation on character model  (Read 1920 times)

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
[question] replace animation on character model
« on: May 21, 2011, 09:33:33 pm »
i find this http://www.youtube.com/user/hareticdeat ... w8DGuOBpuM  and this http://over-game.org/world-warcraft-mod ... tions.html (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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question] replace animation on character model
« Reply #1 on: May 24, 2011, 03:31:38 pm »
i find this http://www.elitepvpers.com/forum/wow-mo ... rting.html 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


Uploaded with ImageShack.us
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

gorq

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 141
    • View Profile
Re: [question] replace animation on character model
« Reply #2 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question] replace animation on character model
« Reply #3 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

gorq

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 141
    • View Profile
Re: [question] replace animation on character model
« Reply #4 on: June 13, 2011, 12:16:52 am »
I use modit to see and compare bones.i will see it in blender, thx
« Last Edit: January 01, 1970, 01:00:00 am by Admin »