Hello,
I'm working on a simple game right now. I have some animated character models created with XSI that I am using. The problem I am having is that, if i have two character models using the same model, the animation players refer to the same object. It seems perhaps that the problem is that you have to call:
l_Animations.ResolveBones(Model),
which loops through the model and records references to all the ModelBones, which would be a shallow copy instead of a deep copy (because the content manager always returns the same model). This seems counterintuitive, as it would be very common for games to need the same model animated different ways, so its definitely possible the problem is in my code.
Also, I don't have the same problem with the SkinnedModel sample on XNA, this seems to work fine... but we would prefer to use .xsi if possible
Has anyone encountered a similar problem and maybe found a workaround?
Thanks!
EDIT: I found a workaround - I moved the code that handled the updating of the animation (Playback() etc) into the Draw function, before the bone transforms are copied. This fixed the problem