This project is read-only.

Model and SkinnedModel...

Mar 30, 2010 at 4:02 PM

Hey, i just downloaded XNAnimation. Looks really good but i'm having some trouble with it.

I already have a class in which i load a model + a controller class to move it around.

Now with XNAnimation i can't load models with the XNA Model type, instead i have to use SkinnedModel to load a model.
This kinda breaks down my code, cause i'm using the functionality of Model throughout my code.

So my question is basically the following:

Suppose i loaded a model like this:

Model myModel = new Content.Load<Model>("Content/model");

Is there anyway i can pass that to SkinnedModel?? So i can still use the funtionality of that library and also keeping my code like it is now...??

Apr 2, 2010 at 12:04 PM

To get to the "model" class of a skinmodel just load it like this

SkinnedModel myModel = new Content.Load<SkinnedModel>("Content/model");

myModel.Model <--- there you have it.