[How to] work with .mesh

wolen

19-09-2012 19:09:35

Hi, I here again with 2 questions.

First I was trying to find some mesh of bird with animation but I failed. I downloaded raven_fly.mesh...I have .material and .skeleton. So Model looks fine. BUT no animation. I used OgreMeshMagick.exe to get info and no animations. but When I use same program on ninja.mesh (has many animation) it tells me again no animations. So I am confused. Is there any possibility to find animations or makes animations or if some has .mesh of something like bird...?

Second question is very simple I have knot.mesh but I am so stupid and I can not write .material I read something and google it so I found that it must looks like
material 2 - Default
{
technique
{
pass
{

texture_unit
{
texture MtlPlat2.jpg
}
}
}
}

But it dousn't works. MOGRE gives me :
20:01:07: Can't assign material 2 - Default to SubEntity of target10 because this Material does not exist. Have you forgotten to define it in a .material script?

How can I fix it?

wolen

19-09-2012 20:41:32

So knot is solved

e1.SetMaterialName("Knot");

but wat about the other question?

wolen

19-09-2012 21:24:21

Ok I found it. Few hours and problem is solved...animations is in skeleton not in mesh