www.jpct.net

Bones - Skeletal and Pose Animations for jPCT/jPCT-AE => Bones => Topic started by: Babu on June 29, 2011, 03:58:40 pm

Title: Clip "sequence" issue.
Post by: Babu 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
Title: Re: Clip "sequence" issue.
Post by: raft 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.
Title: Re: Clip "sequence" issue.
Post by: Babu on June 29, 2011, 05:55:39 pm
thanks a lot, raft, you rock!!  :D