Looking to create JSON for importing into three.js
. My plan is to generate it in C# from my own geometry classes. While the schema provided by Three.js
helps, I'm puzzled about the significance of the numbers in
jsonFormat4.object.children[1].matrix
within this sample JSON. The array values at that location are:
[1,0,0,0,0,1,0,0,0,0,1,0,100,200,150,1]
Through trial and error in the editor using File > Export Object, I've deciphered some values. For instance,
jsonFormat4.object.children[1].matrix[13]
appears to represent the x position, jsonFormat4.object.children[1].matrix[14]
stands for the y position, and jsonFormat4.object.children[1].matrix[15]
signifies the z position.
In addition, I'm curious about the other values and whether there's detailed documentation available on this topic (if not, perhaps this query could fill that void). How exactly are the numbers at the remaining indices determined? Appreciate any insights or guidance you can offer.