Hi,
I have recently bought some commercial models, namely these:
http://3drt.com/store/vehicles/galaxian-space-invaders.html
They are animated but I can't get the animations to work in AGK. I don't know if the issue is with AppGameKit or with the models.
They come in various formats and I have tried to load each supported format with this code:
obj = LoadObjectWithChildren("cp_01_anim_autodesk.dae")
tex = LoadImage("cp_01_1.jpg")
SetObjectImage(obj,tex,0)
qtyAnim = GetObjectNumAnimations(obj)
animName as string[]
for k = 0 to qtyAnim
animName.insert(GetObjectAnimationName(obj, k))
next k
PlayObjectAnimation(obj, animName[1], 0, 5, 1, 0)
do
for k = 0 to qtyAnim
print(str(k)+": "+animName[k])
next k
Print( ScreenFPS() )
Sync()
loop
The only formats that show animation are the *.DAE ones, of which there are two variants. There's *.autodesk.DAE and *.collada.DAE
The autodesk variant has a single animation which combines all of the (supposedly) separate animations. The collada variant performs in much the same way but only displays the main body of the model and not the children.
There are 3 variants of the *.X format. Two of them don't animate but the third (*.anim_split_XNA.x) does at least list the 24 animation names (the only format that does) however, when I try to animate them, they set the object to the position of the first frame but go no further.
None of the other model formats show or list any animations at all.
So, is there a problem with AppGameKit or is it the way the models have been exported?
If it's the models then I will speak to Max at 3DRT.com and ask if he can help - he has done something similar for me in the past but it would be useful to know what it is that I need to ask him to do.
Any ideas?
Thanks
AGK V2 user - Tier 1 (mostly)