Hey folks! Just getting started with js and three.js, pardon the basic question.
I’m looking to build a scene in Maya for a small game and set up positions for a first person camera to animate and “snap” to. I’m hoping to do this programmatically without manually writing x/y/z/rotation values into the script itself, and grab updates from objects in the 3D scene.
When generating GLTF models the polys are in the correct place, but inherently transforms are set to zero and not maintained from the original scene.
What’s an efficient way to extract data from transforms within the scene? I can add children objects ahead of time, deliberately convert my set up cameras to verts or something, or skip the whole thing and write out a JSON that we parse to skip the whole GLTF bit of it.
Thanks in advance!