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

Pages: 1 [2]  All

Author Topic: PlayAnim() bug. When the first and the last frames are different  (Read 26477 times)

0 Members and 1 Guest are viewing this topic.

cremen

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 26
    • View Profile
    • Pink Town
Re: PlayAnim() bug. When the first and the last frames are different
« Reply #15 on: December 29, 2008, 07:22:02 AM »

This animation are played successfully in DirectX SDK viewer. (loop without any artefacts)

P.S. In Brume C# Engine too.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: PlayAnim() bug. When the first and the last frames are different
« Reply #16 on: December 29, 2008, 09:32:44 AM »

It's not a bug. The problem is the engine doesn't know the reading animation should loop and keeps restarting it all the time.
You need to add a definition file which adds more animation properties. Normally this is done in the .act3D file (like you did), however for merged animations each .X file must be coupled with a definition file.

Simply put, create a new text file called "stand_n_read.anim" where your stand_n_read.x is located and the file will contain the following:

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

That will fix the problem.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

cremen

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 26
    • View Profile
    • Pink Town
Re: PlayAnim() bug. When the first and the last frames are different
« Reply #17 on: December 29, 2008, 09:58:07 AM »

ok, it fix helped.

thanks for your time.
Logged
Pages: 1 [2]  All
 

Page created in 0.023 seconds with 20 queries.