Hi, and thank you for this great lib once more! :)
I am deep in parsing the file format and in most cases I am able to read in simpler models.
However I am unable to parse complex models as the provided transforms seem to be off.
The following model starts from the center bottom:
But upon reading it in with the library the following scene array is parsed:
First of the leaves part of the model tree is added up to start from Z value 105 ( Right handed Z up coordinate system ), so that seems to be correct. This is added up from its parent transforms, [2] and [4].
However, the second model, which is the trunk of the tree model just doesn't add up to its position, as supposedly it starts at z value 48, which overrides the other model, and is much higher, than it is supposed to be..
In the below rendering of the parsed tree the result is shown, the heights ( z coord ) are marked at 105 0nd 120:
Do the models start at the bottom-left-near corner of the transform?
Hi, and thank you for this great lib once more! :) I am deep in parsing the file format and in most cases I am able to read in simpler models. However I am unable to parse complex models as the provided transforms seem to be off. The following model starts from the center bottom:
But upon reading it in with the library the following scene array is parsed:
The way I understand this: https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox-extension.txt guide, the positions just don't add up.
First of the leaves part of the model tree is added up to start from Z value 105 ( Right handed Z up coordinate system ), so that seems to be correct. This is added up from its parent transforms,
[2]
and[4]
.However, the second model, which is the trunk of the tree model just doesn't add up to its position, as supposedly it starts at z value 48, which overrides the other model, and is much higher, than it is supposed to be.. In the below rendering of the parsed tree the result is shown, the heights ( z coord ) are marked at 105 0nd 120:
Do the models start at the bottom-left-near corner of the transform?