Some may say to just convert to Blender and then to Egg. But that is an extra step and very messy having to deal with the layers, UV, and animation. Not to mention learning another program (unless you must) just to convert a file from one format to another.I believe Egg should be a direct export from the MakeHuman program.
Below is an example of a simple cube in EGG which can be read from any text editor. Unfortunately it is 183 lines long... I would have uploaded this as an attachment, but .EGG is not allowed.
CUBE.EGG
- Code: Select all
<CoordinateSystem> { Z-up }
<Material> Material {
<Scalar> diffr { 0.640000 }
<Scalar> diffg { 0.640000 }
<Scalar> diffb { 0.640000 }
<Scalar> specr { 0.500000 }
<Scalar> specg { 0.500000 }
<Scalar> specb { 0.500000 }
<Scalar> shininess { 12.5 }
<Scalar> ambr { 1.000000 }
<Scalar> ambg { 1.000000 }
<Scalar> ambb { 1.000000 }
<Scalar> emitr { 0.000000 }
<Scalar> emitg { 0.000000 }
<Scalar> emitb { 0.000000 }
}
<Group> Cube {
<Transform> {
<Matrix4> {
1.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0
0.0 0.0 1.0 0.0
0.0 0.0 0.0 1.0
}
}
<VertexPool> Cube {
<Vertex> 0 {1.000000 1.000000 -1.000000
<UV> ORCO {
1.000000 1.000000
}
}
<Vertex> 1 {1.000000 -1.000000 -1.000000
<UV> ORCO {
1.000000 0.000000
}
}
<Vertex> 2 {-1.000000 -1.000000 -1.000000
<UV> ORCO {
0.000000 0.000000
}
}
<Vertex> 3 {-1.000000 1.000000 -1.000000
<UV> ORCO {
0.000000 1.000000
}
}
<Vertex> 4 {1.000000 0.999999 1.000000
<UV> ORCO {
1.000000 1.000000
}
}
<Vertex> 5 {-1.000000 1.000000 1.000000
<UV> ORCO {
0.000000 1.000000
}
}
<Vertex> 6 {-1.000000 -1.000000 1.000000
<UV> ORCO {
0.000000 0.000000
}
}
<Vertex> 7 {0.999999 -1.000001 1.000000
<UV> ORCO {
0.999999 0.000000
}
}
<Vertex> 8 {1.000000 1.000000 -1.000000
<UV> ORCO {
1.000000 1.000000
}
}
<Vertex> 9 {1.000000 0.999999 1.000000
<UV> ORCO {
1.000000 1.000000
}
}
<Vertex> 10 {0.999999 -1.000001 1.000000
<UV> ORCO {
0.999999 0.000000
}
}
<Vertex> 11 {1.000000 -1.000000 -1.000000
<UV> ORCO {
1.000000 0.000000
}
}
<Vertex> 12 {1.000000 -1.000000 -1.000000
<UV> ORCO {
1.000000 0.000000
}
}
<Vertex> 13 {0.999999 -1.000001 1.000000
<UV> ORCO {
0.999999 0.000000
}
}
<Vertex> 14 {-1.000000 -1.000000 1.000000
<UV> ORCO {
0.000000 0.000000
}
}
<Vertex> 15 {-1.000000 -1.000000 -1.000000
<UV> ORCO {
0.000000 0.000000
}
}
<Vertex> 16 {-1.000000 -1.000000 -1.000000
<UV> ORCO {
0.000000 0.000000
}
}
<Vertex> 17 {-1.000000 -1.000000 1.000000
<UV> ORCO {
0.000000 0.000000
}
}
<Vertex> 18 {-1.000000 1.000000 1.000000
<UV> ORCO {
0.000000 1.000000
}
}
<Vertex> 19 {-1.000000 1.000000 -1.000000
<UV> ORCO {
0.000000 1.000000
}
}
<Vertex> 20 {1.000000 0.999999 1.000000
<UV> ORCO {
1.000000 1.000000
}
}
<Vertex> 21 {1.000000 1.000000 -1.000000
<UV> ORCO {
1.000000 1.000000
}
}
<Vertex> 22 {-1.000000 1.000000 -1.000000
<UV> ORCO {
0.000000 1.000000
}
}
<Vertex> 23 {-1.000000 1.000000 1.000000
<UV> ORCO {
0.000000 1.000000
}
}}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 0.000000 -1.000000}
<VertexRef> { 0 1 2 3 <Ref> { Cube }}
}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 0.000000 1.000000}
<VertexRef> { 4 5 6 7 <Ref> { Cube }}
}
<Polygon> {
<MRef> { Material }
<Normal> {1.000000 -0.000000 0.000000}
<VertexRef> { 8 9 10 11 <Ref> { Cube }}
}
<Polygon> {
<MRef> { Material }
<Normal> {-0.000000 -1.000000 -0.000000}
<VertexRef> { 12 13 14 15 <Ref> { Cube }}
}
<Polygon> {
<MRef> { Material }
<Normal> {-1.000000 0.000000 -0.000000}
<VertexRef> { 16 17 18 19 <Ref> { Cube }}
}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 1.000000 0.000000}
<VertexRef> { 20 21 22 23 <Ref> { Cube }}
}
}
I will get back to you when I have more information. I have asked for assistance at the Panda3D community as well. They can pitch in and help with this as well.