Inconsistancy in Blender egg format...

Hi all,

I am having a weird bug in the egg file being generated by the Chicken 91 exporter in Blender which I am using.

I created a simple plane with 4x4 subdivisions and exported it. It spans from (-5,-5) to (5,5) with its center at (0,0)

Here is a brief of the egg file :


<CoordinateSystem> { Z-up }

<Comment> { "Egg laid by Chicken for Blender, version R91" }

<Group> Plane {
  <Transform> {
    <Matrix4> {
      5.000000 0.000000 0.000000 0.000000
      0.000000 5.000000 0.000000 0.000000
      0.000000 0.000000 5.000000 0.000000
      0.000000 0.000000 0.000000 1.000000
    }
  }
  <VertexPool> Plane {
    <Vertex> 0 {
      -2.49999856949 5.00000095367 0.0
    }
    <Vertex> 1 {
      -4.99999809265 5.00000190735 0.0
    }
    <Vertex> 2 {
      -4.99999904633 2.50000143051 0.0
    }
    <Vertex> 3 {
      -2.49999904633 2.50000119209 0.0
    }
    <Vertex> 4 {
      8.94069671631e-07 5.00000047684 0.0
    }
    <Vertex> 5 {
      -2.49999856949 5.00000095367 0.0
    }

    ...

If you can notice, Vertex 4 has weird values (8.94…) and these weird values appear throughout the egg file in various intervals.

Is there something wrong with my exporter ?

Any help would be appreciated.

Thanks.

This is how very small numbers are represented.
The e-07 means the decimal will be shifted 7 decimal places left, so 8.94069671631e-07 = 0.000000894069671631. For most practical purposes, it is zero.
Floating point numbers only have a certain number of digits of precision, so computers being clever as they are will handle this situation for you automatically.

Looks all okay to me.
The reason you don’t see perfect one digit numbers is because of the limited precision. You could obtain more precision with more processing and memory usage, but there really is no reason.

E.g. if your units are meters then you can except the inaccuracy influence micrometers (10^-6). Not a big deal

Cool haha I didn’t notice the ‘e’. Thanks.

@ Nemesis#13
I think I need to follow your status too about not editing posts :slight_smile: