Parsing and Generating Egg Files¶

Transforms and Vertices¶

The egg syntax defines all transforms, including joint transforms, relative to the parent node only. When the animation is played, Panda accumulates the transforms for each joint.

Although joints are defined using a local transform, vertices are defined in an egg file using global coordinates, which is irrespective of transforms appearing within the egg file. This means when Panda loads the egg file is loaded, the vertex coordinates given in the egg file must be pre-transformed by the appropriate inverse matrix to compensate.

If you decide to use the panda runtime system, the classes you will need to use are defined in the panda3d.egg module, such as panda3d.egg.EggData, panda3d.egg.EggGroup, and so forth. Like all panda classes, these are documented in the API reference manual.