My exporter is coming along, but I’m a bit stuck on skeletal animations. I believe I’ve got all the animation stuff the eggSyntax.txt told me to do exported, although, pview is listing my animation, with the correct amount of frames, but when I play it I can’t see anything moving.
This is vaguely my egg file structure: (I left out most of the boring data)
My joint hierarchy exactly matches my animation data hierarchy, and I’m not getting any errors from chan.
As far as I’m seeing, I did everything I needed – or am I still missing something?
There is one curiosity: the top group, the one that encloses the flag, is usually a entry, not a ; and it usually encloses all the 's and 's too. (The flag is the key flag that switches the egg loader into the character-loading mode, so it needs to be the first thing it sees, even before it sees the top joint, or any polygons or vertices.)
The animation tables, of course, should remain outside the flag group, as they are now. The structure should be something like this:
I’m not 100% sure this is the problem, but it seems like a likely guess.
Note that I also renamed the character name–the name that is applied both to the topmost , and to the dart –to be different from your top joint name, since it’s just confusing if they’re the same thing.
Thanks for your quick reply.
That however gives a problem that seems totally unrelated.
Loading goblin.egg
:loader: loading file type module: ptloader
:egg2pg: Reading goblin.egg
:egg2pg: Flattened 1 nodes.
:chan: Attempting to bind CharacterJointBundle Alien to AnimBundle Alien, 101 frames at 30 fps
:chan: Bind succeeded, index 0; accessible as Alien
Assertion failed: n >= 0 && n < (int)_points.size() at line 159 of geomVertexFormat.I
Assertion failed: i >= 0 && i < (int)_cdata->_arrays.size() at line 2213 of geomVertexData.cxx
Segmentation fault
Ah, OK. Turned out to be a bug I’d introduced recently on the CVS trunk (but not on the 1.5 branch, fortunately) that caused a problem when you animate a character that includes tangents and binormals (Panda has to animate these too, if they’re present). I’ve just checked in a fix.