This recipe illustrates how to handle multiple animations in a single model.
This recipe requires an MDX file with multiple animations, which unfortunately walker.mdx
does not have and none of the other examples provided with the SDK will work, for reasons explained next. Therefore I acquired a fully rigged model from the Internet and created my own simple animations using Blender. The model itself is from OpenGameArt and can be downloaded from http://bit.ly/QeoPGP. The MDX file I generated is included along with all of the source code as Ch8_Example6
.
Create a new project, add the preceding .mdx
file to the project, and set its Build Action to Content. You also need to add a reference to Sce.PlayStation.HighLevel.Model
.