Here is the scenario:
- Load a GLTF
- create thin instances on a mesh
The created instances are rotated by PI (or maybe negative Y scaling) when I create the thin instances after returning from createScene() and I invoke the thinnization with a GUI button.
The created instances are positioned OK, when I invoke the thinnization just right after I loaded the model.
I believe, that some calcuations takes place after returning from createScene and that changes the matrices.
How to use the playground:
After running it some objects appear. Click (lines 33-35) on the thinnize button to make two thin instances of a particular mesh (function thInnIze(scene) at line 43). Everything except that particular mesh is setEnabled(false) and two tables appear in black. They are actualy rotated, you can look at them form below and see the light woodish color.
Now uncomment line 37, so the thinnization takes place while still in createScene(). Run. Now you can immediately see the tables correctly faced up.
Can somene help me to understand what is going on?
Appreciating any input, thank you!
EDIT: is this related to the fact, that the GLTF exporter from Blender exports by -Y scaling?