Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Working animation with .X files  (Read 4035 times)

0 Members and 1 Guest are viewing this topic.

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Working animation with .X files
« on: January 06, 2011, 03:03:41 AM »

Hello I am good with animation in Maya but I am confused about the .X format. I have a .obj to .x converter, so I can easily put .x files into the Wintermute engine, but how would I get an animation into a .x file? Also I notice in the sample project Trinity is just standing there when looking at the actor file in directory. I know with 2D sprites when they walk around, it switches to different sprite files, but how would I handle the actions with the 3d actor file, for example, how would it know to use the proper walking motion, take motion, etc.

Thanks all
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Working animation with .X files
« Reply #1 on: January 06, 2011, 09:21:29 AM »

The .X file can contain multiple named animations. The engine looks for animations with specific names (such as "walk"). You can override these names using attributes such as actor.WalkAnimName.

As for .obj format, I don't think it supports animations, but I may be wrong.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Working animation with .X files
« Reply #2 on: January 16, 2011, 01:30:12 AM »

I succesfully imported an animated .x file into Wintermute. I am having issues with switching the animations. For example, when I click an area, the actor goes to it but does not do the walk animation. Where would I go to set the animations for the different actions?

THanks
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Working animation with .X files
« Reply #3 on: January 16, 2011, 01:59:11 AM »

You have to define the animations in the actor definition file.
Logged
fl*p
 

Page created in 0.039 seconds with 19 queries.