yozefx / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

the animation problem of my blend files #311

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
when i load the animation of the blender file ,some problem will occur with 
following code:

void gkBlenderSceneConverter::convertObjectMesh(gkGameObject* gobj, 
Blender::Object* bobj)
{
...................
...............
// if it has an action save the initial pose / animation name
if (bobj->parent)
{
Blender::Object* par = bobj->parent;
Blender::bAction* act = par->action;
if (!act && par->proxy_from) //------------------------------------the act and 
the proxy_from are always null with my blender but act is not null with 
momo.blend
act = par->proxy_from->action;

if (act)
props.m_startPose = (GKB_IDNAME(act));
}
}

I have saw the blender source code ,it said thad the act is the old animtion 
method ,but how can i get the animtion with new blender
thanks and the attachment is my blender file

Original issue reported on code.google.com by huhu...@gmail.com on 21 May 2013 at 1:06

Attachments:

GoogleCodeExporter commented 8 years ago
I think, it isn't a blend file loading issue.
I have tested your blend file in LuaEditor, and I can see walk animation.
Try check two blend file difference.
For example, the entity SpideBody_Ob don't have animation in your blend file, 
but MeshMo has animation in Blender Outliner.

Original comment by harkon...@gmail.com on 26 May 2013 at 7:27

GoogleCodeExporter commented 8 years ago
I have read the code of animkit_src_r1020.zip , it's different with the 
gamekit's animation lib code ,but i don't known how use luaeditor to load the 
animation, i will have try ,thanks for your reply!

Original comment by huhu...@gmail.com on 4 Jun 2013 at 1:51

GoogleCodeExporter commented 8 years ago
>how use luaeditor to load the animation,
1. Comile LuaEditor on Window.
2. Drag&Drop your blend file.
3. Select a skeleton obj.
4. Open Tools/Animation Manager.
5. Add a animation & Play.

Original comment by harkon...@gmail.com on 7 Jun 2013 at 6:10