XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

Animation Interfaces Questions

Last post 28/05/2008 20:17 by creasso. 0 replies.
  • 28/05/2008 20:17

    Animation Interfaces Questions

    Greetings.

    I’m designing a class to deal with animated characters, until now I successfully loaded the char, hierarchy, etc. The next step will be implementing multiple animations. It’s my first time programming, so I’m not so much experienced on topics like memory management and performance, but by logic I suppose that deal with such issues since the beginning will save me from future headaches with code maintenance and tuning.

    Reading the ID3DXAnimationController docs, I noticed that there are functions targeting get the controller capabilities like GetMaxNumAnimationOutputs(  ) and GetMaxNumAnimationSets(  ) that are referenced like the ones that the controller “can support”. I suspect that this means that the animation controller has some limits, and while these functions can returns then, I would like to know how these limits are established, most specifically:

    Q: Which factors are the bases to state then?  (Maybe a relationship like number of D3DXFRAMEs * animation frames?)

    Q: Does while parsing the X File D3DXLoadMeshHierarchyFromX(  ) will always load (or try to load) all the AnimationSets from the file? Or does it respect some max number of AnimationSets because this supposed controller limit?

    Q: Are there a default safe margin of AnimationSets to be established by controller/instance? If yes, how much?

    These questions can helps in some decisions, about the loading procedure and how I can store AnimationSets to further usage, so any advice will be greatly welcome.

    Thank You.

Page 1 of 1 (1 items) Previous Next