Hi,
In my app, i am able to export and import gltf models. When exporting f.e. 3 same gltf models with different position, rotation and scale with these options:
and import them again, i will import the 3 gltf models but all with position 0,0,0, rotation 0,0,0 and scale 1,1,1.
How can i keep the attributes? I thought trs enabled keeps these attributes…
Btw.: I made sure i didn’t overwrite the attributes after importing them. So the problem has to be one with exporting these objects.
Unfortunately i cannot publish my code, but i can share my whole export and import functions. Also i am not sure how to demonstrate the problem on fiddle. The information gets lost when exporting i think…
Here is my import code:
loader = new GLTFLoader();
It means the transformation is saved as three distinct entities: position, rotation and scale. If it is false, the local matrix is saved instead (meaning Object3D.matrix). These are just two different ways to define the transformation of a glTF node.
So the actual world position, rotation and scale in the scene of the object will not get saved with trs enabled? So i would have to save this data in another way…