I'm having some trouble getting the animation viewer to work with the update.
//create a blender that can compose the animations for transition
blender_ = new AnimationBlender(loadedModel_.Model, loadedModel_.Name);
loadedModel_.AnimationInstance = blender_;
I'm getting the following error with the second line
Error 1 'KiloWatt.Base.Animation.ModelDraw' does not contain a definition for 'AnimationInstance' and no extension method 'AnimationInstance' accepting a first argument of type 'KiloWatt.Base.Animation.ModelDraw' could be found (are you missing a using directive or an assembly reference?)
I'm also getting an error with these lines
// draw the loaded model (the only model I have)
loadedModel_.SceneDraw(dd);
loadedModel_.SceneDrawTransparent(dd);
It's asking for additional arguments.
I had the updated projects running some time earlier this year without any problems. Did my merge/update fail or have I made some other mistake, What's the proper sollution?
Reproduced the problem
I also encountered the same situation. I fixed the compile errors by substituting the code as such:
loadedModel_.AnimationInstance = blender_; changed to
loadedModel_.CurrentAnimation = blender_;
loadedModel_.SceneDraw(dd);
loadedModel_.SceneDrawTransparent(dd); changed to
loadedModel_.SceneDraw(dd, 0);
loadedModel_.SceneDrawTransparent(dd, 0);
AnimationViewer now runs, but nothing shows up other than a solid background color. I suspect that the '0' argument in the draw methods may be wrong? It seems this integer should be used to choose shader technique, but I can't find out what numbers should go there. Trying numbers 0, 1, 2, 3 and 4 did not help..
I downloaded the most recent source code (KiloWatt Animation 20081128 / 20100307) from http://www.enchantedage.com/xna-animation .
Has anyone got this working?
If God wanted us to be brave, why did he give us legs?