Author Topic: Clip "sequence" issue.  (Read 17824 times)

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Clip "sequence" issue.
« on: June 29, 2011, 03:58:40 pm »
hi raft,

Can you please let me know if there is logic behind the index nos. for the pose-clips (in the PoseClipSequence)?
I am seeing that the sequence (or order) in which pose-clips are present in the xml file is not the same as it is in the PoseClipSequence  :(

For my app I need the pose-clips to be in some predictable sequence.  So,
1. What should I do so that the order in the xml file and the order in the PoseClipSequence are same?
2. Or is there possibility of "animatePose()" API supporting a clip-name in the near future?

Thanks,
Babu

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Clip "sequence" issue.
« Reply #1 on: June 29, 2011, 04:46:39 pm »
i see. that happens because jME puts animations in a HashMap and HashMap does not preserve insertion order. i replaced it with a LinkedHashMap and now order is preserved. please re-download the zip.

Offline Babu

  • int
  • **
  • Posts: 71
    • View Profile
Re: Clip "sequence" issue.
« Reply #2 on: June 29, 2011, 05:55:39 pm »
thanks a lot, raft, you rock!!  :D