Help with animated models
#5
(01-23-2022, 10:28 PM)abenedik Wrote: This error is thrown from the SelectAnimation method:
Code:
        public void SelectAnimation(string animationName)
        {
            if (animationName == null)
                throw new ArgumentNullException(nameof(animationName));

            var assimpAnimation = _assimpScene.Animations.FirstOrDefault(a => a.Name == animationName);

            if (assimpAnimation == null)
                throw new Exception("Cannot find animation with name " + animationName);

            SelectAnimation(assimpAnimation);
        }

As seen from the code, this error would be thrown when the SelectAnimation was called with the animationName parameter set to "Assimp.Animation" and when there was no animation in the _assimpScene.Animations with that name.

Please put a breakpoint into SelectAnimation and check where the value of animationName came from.

Thank you i found the issue i had 2 SelectAnimation() functions i renamed one to MYSelectAnimation() models now load in but the animation does not display, the text information loops through the frame numbers though.

The skeleton does animate but the asset does not, i am not sure what i have missed ?

Also i think there is something wrong with FBX skeleton no matter what i do the asset is malformed when skeleton is created any other format seems ok

   
Kevan Hampson
  


Messages In This Thread
Help with animated models - by GraPhiX - 01-20-2022, 07:23 PM
RE: Help with animated models - by GraPhiX - 01-21-2022, 07:08 PM
RE: Help with animated models - by GraPhiX - 01-21-2022, 07:40 PM
RE: Help with animated models - by abenedik - 01-23-2022, 10:28 PM
RE: Help with animated models - by GraPhiX - 01-24-2022, 02:53 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)