Search the Community
Showing results for tags 'Schema'.
Found 1 result
-
Understanding LDD's LXFML Schema
Gnac posted a topic in Digital LEGO: Tools, Techniques, and Projects
For a while now, I have been itching to know just how LXFML files work. Although there is official documentation to explain the purpose of the <nodes>, information which details the attributes of these nodes is scarce. The most useful thing to understand would be the "transformation" attribute of the <Bone> nodes, which appears to contain data about the position and orientation of each <brick>. However, before we can even begin to try to understand the comma-seperated values here, we need to understand the LDD grid, how the application displays it to you, the user, and how it relates to the 3D Cartesian Co-ordinate System. Take a look at this image here! This is what I have learned about the LDD grid from doing a series of tests on an instance of part 3039, placed in the very centre of the LDD grid. I planned 32 test cases which resulted in all the basic positions for a brick that I could think of, and made a PHP script to read the LXFs, extract their values, and display them in a comparison table. The X, Y and Z movement values are pretty obvious, but the rotation values less so. 10 tests are pending (because I think I really should have made sense of these values by now), and I see no sense in doing them until I have an "epiphany". Seriously, Just LOOK at the changed values (in red) on that table. Could there be some sort of bitwise combinations going on with fields 1-9? My brain is getting smashed in by plastic rocks here.