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: Attached Object and looping animation  (Read 6018 times)

0 Members and 1 Guest are viewing this topic.

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Attached Object and looping animation
« on: June 03, 2009, 08:16:25 AM »

I have a 3D actor with an object attached to it. The problem is that if a try to play a looped animation the animation play correctly, but don't loop.
It's possible to loop it? It's set to loop in the object act3d file.

I have also tried to set the animation as idle with "IdleAnimName" attributes, but with no results.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Attached Object and looping animation
« Reply #1 on: June 03, 2009, 02:29:13 PM »

You mean animation of the actor, or animation of the attachment?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Attached Object and looping animation
« Reply #2 on: June 03, 2009, 03:42:31 PM »

Sorry, animation of the attachment.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Attached Object and looping animation
« Reply #3 on: June 03, 2009, 10:04:00 PM »

You should be able to achieve looping animation for attachment by creating a file with the same name as the .X model, and the .anim extension (e.g. for SomeDude.x create file SomeDude.anim). The file would contain something like this:

Code: [Select]
ANIMATION
  {
    NAME="idle"
    LOOPING=TRUE
  }

The IdleAnimName property is not available for attachments, only for actors (attachments are somewhat limited in functionality compared to actors).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Attached Object and looping animation
« Reply #4 on: June 04, 2009, 07:52:08 AM »

Where should this file be placed?

I tried to create this file for the actor, with the same name of the actor, and it didn't work.
I also tried to create this file for the attached object, with the same name of the attached object, and it didn't work.

The animation won't loop  :(
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Attached Object and looping animation
« Reply #5 on: June 04, 2009, 07:57:16 AM »

I tried to create this file for the actor, with the same name of the actor, and it didn't work.
Not the actor, the .X file containing the animation you want to loop.
It must be in the same directory as the .X file.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Attached Object and looping animation
« Reply #6 on: June 04, 2009, 09:31:32 AM »

Done. It play the animation ad before, without loop.

The .anim file is in the same directory as the object .x file and with the same name. The name of the anim is the same of the anim that is played trough scripts.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Attached Object and looping animation
« Reply #7 on: June 19, 2009, 07:38:33 AM »

As far as I can say, it should work. When the X file is loaded, the engine is looking for the .anim file, no matter if the mesh is used for character or for attachment.
I'll have to test it.

Alternatively, there can be looping information stored directly in the .X file, providing the exporter supports this feature, though.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Attached Object and looping animation
« Reply #8 on: June 19, 2009, 12:29:45 PM »

I think we tried everything. Also the looping information stored in the .x file.

Everytime the animation works perfectly if the object was placed in the scene alone. But when attached to the main 3d object there was no loop.

Don't worry Mnemonic, we solved taking the two objects separated. It's the best solution because we have to move the main 3d object but with a trick it works however :)
Logged
 

Page created in 0.044 seconds with 23 queries.