I’m working on a turn based tactics game in a similar vein to XCOM. At the moment I’m trying export a floor tile from blender to the .egg format. It mostly works but the texture I’ve assigned to the tile isn’t added to the .egg. I can paste in the texture manually and it’ll load the model but obviously I don’t want to have to do this every time I change or create a new .egg.
dropbox.com/sh/h6napx3que0worw/S3Z_L-LMVv
This is a link to my public dropbox which has the .egg, the blender model, and texture for the tile. Below is the what I get from YABEE with this blender model.
<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> emitr { 0.000000 }
<Scalar> emitg { 0.000000 }
<Scalar> emitb { 0.000000 }
}
<Material> Material.001 {
<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> emitr { 0.000000 }
<Scalar> emitg { 0.000000 }
<Scalar> emitb { 0.000000 }
}
<Group> collider_Tile1A {
<Collide> { Polyset keep descend }
<Transform> {
<Matrix4> {
4.000000 0.000000 0.000000 0.000000
0.000000 3.000000 0.000000 0.000000
0.000000 0.000000 1.000000 0.000000
0.000000 0.000000 0.000000 1.000000
}
}
<VertexPool> collider_Tile1A {
<Vertex> 0 {
-4.0 -3.0 0.0
}
<Vertex> 1 {
4.0 -3.0 0.0
}
<Vertex> 2 {
4.0 -3.0 0.10000002384185791
}
<Vertex> 3 {
-4.0 -3.0 0.10000002384185791
}
<Vertex> 4 {
-4.0 -3.0 0.0
}
<Vertex> 5 {
-4.0 3.0 0.0
}
<Vertex> 6 {
4.0 3.0 0.0
}
<Vertex> 7 {
4.0 -3.0 0.0
}
<Vertex> 8 {
4.0 3.0 0.0
}
<Vertex> 9 {
4.0 3.0 0.10000002384185791
}
<Vertex> 10 {
4.0 -3.0 0.10000002384185791
}
<Vertex> 11 {
4.0 -3.0 0.0
}
<Vertex> 12 {
4.0 -3.0 0.10000002384185791
}
<Vertex> 13 {
4.0 3.0 0.10000002384185791
}
<Vertex> 14 {
-4.0 3.0 0.10000002384185791
}
<Vertex> 15 {
-4.0 -3.0 0.10000002384185791
}
<Vertex> 16 {
-4.0 3.0 0.10000002384185791
}
<Vertex> 17 {
4.0 3.0 0.10000002384185791
}
<Vertex> 18 {
4.0 3.0 0.0
}
<Vertex> 19 {
-4.0 3.0 0.0
}
<Vertex> 20 {
-4.0 3.0 0.10000002384185791
}
<Vertex> 21 {
-4.0 3.0 0.0
}
<Vertex> 22 {
-4.0 -3.0 0.0
}
<Vertex> 23 {
-4.0 -3.0 0.10000002384185791
}}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 -1.000000 0.000000}
<VertexRef> { 0 1 2 3 <Ref> { collider_Tile1A }}
}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 0.000000 -1.000000}
<VertexRef> { 4 5 6 7 <Ref> { collider_Tile1A }}
}
<Polygon> {
<MRef> { Material }
<Normal> {1.000000 0.000000 0.000000}
<VertexRef> { 8 9 10 11 <Ref> { collider_Tile1A }}
}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 0.000000 1.000000}
<VertexRef> { 12 13 14 15 <Ref> { collider_Tile1A }}
}
<Polygon> {
<MRef> { Material }
<Normal> {0.000000 1.000000 0.000000}
<VertexRef> { 16 17 18 19 <Ref> { collider_Tile1A }}
}
<Polygon> {
<MRef> { Material }
<Normal> {-1.000000 0.000000 0.000000}
<VertexRef> { 20 21 22 23 <Ref> { collider_Tile1A }}
}
}
<Group> Tile1A {
<Transform> {
<Matrix4> {
4.000000 0.000000 0.000000 0.000000
0.000000 3.000000 0.000000 0.000000
0.000000 0.000000 1.000000 0.000000
0.000000 0.000000 0.000000 1.000000
}
}
<VertexPool> Tile1A {
<Vertex> 0 {
-4.0 -3.0 0.0
}
<Vertex> 1 {
-4.0 3.0 0.0
}
<Vertex> 2 {
4.0 3.0 0.0
}
<Vertex> 3 {
4.0 -3.0 0.0
}
<Vertex> 4 {
-4.0 -3.0 0.10000002384185791
}
<Vertex> 5 {
4.0 -3.0 0.10000002384185791
}
<Vertex> 6 {
4.0 3.0 0.10000002384185791
}
<Vertex> 7 {
-4.0 3.0 0.10000002384185791
}
<Vertex> 8 {
4.0 -3.0 0.0
}
<Vertex> 9 {
4.0 3.0 0.0
}
<Vertex> 10 {
4.0 3.0 0.10000002384185791
}
<Vertex> 11 {
4.0 -3.0 0.10000002384185791
}
<Vertex> 12 {
-4.0 3.0 0.0
}
<Vertex> 13 {
-4.0 -3.0 0.0
}
<Vertex> 14 {
-4.0 -3.0 0.10000002384185791
}
<Vertex> 15 {
-4.0 3.0 0.10000002384185791
}
<Vertex> 16 {
4.0 3.0 0.0
}
<Vertex> 17 {
-4.0 3.0 0.0
}
<Vertex> 18 {
-4.0 3.0 0.10000002384185791
}
<Vertex> 19 {
4.0 3.0 0.10000002384185791
}
<Vertex> 20 {
-4.0 -3.0 0.0
}
<Vertex> 21 {
4.0 -3.0 0.0
}
<Vertex> 22 {
4.0 -3.0 0.10000002384185791
}
<Vertex> 23 {
-4.0 -3.0 0.10000002384185791
}}
<Polygon> {
<TRef> { Texture.001 }
<MRef> { Material.001 }
<Normal> {0.000000 0.000000 -1.000000}
<VertexRef> { 0 1 2 3 <Ref> { Tile1A }}
}
<Polygon> {
<TRef> { Texture.001 }
<MRef> { Material.001 }
<Normal> {0.000000 0.000000 1.000000}
<VertexRef> { 4 5 6 7 <Ref> { Tile1A }}
}
<Polygon> {
<TRef> { Texture.001 }
<MRef> { Material.001 }
<Normal> {1.000000 0.000000 0.000000}
<VertexRef> { 8 9 10 11 <Ref> { Tile1A }}
}
<Polygon> {
<TRef> { Texture.001 }
<MRef> { Material.001 }
<Normal> {-1.000000 0.000000 0.000000}
<VertexRef> { 12 13 14 15 <Ref> { Tile1A }}
}
<Polygon> {
<TRef> { Texture.001 }
<MRef> { Material.001 }
<Normal> {0.000000 1.000000 0.000000}
<VertexRef> { 16 17 18 19 <Ref> { Tile1A }}
}
<Polygon> {
<TRef> { Texture.001 }
<MRef> { Material.001 }
<Normal> {0.000000 -1.000000 0.000000}
<VertexRef> { 20 21 22 23 <Ref> { Tile1A }}
}
}