Converting GLTF coordinates

I’m having a hard time positioning objects that I create in my js versus objects in my GLTF. Why isn’t the x,y,z location of an object in GLTF the same as one created in JS?

My approach is to create dummy objects in Blender/GLTF, grab their coordinates and substitue say a flame particle system for a dummy sphere. This doesn’t work and I need to guess coordinates until I get it right. Seems like there should be a better way?

I think we need a repro to help.

One specific thing to glTF is that a __root__ node is created to parent the meshes from the file, and there may be some transformations attached to this node (to account for the right-handed nature of glTF whereas Babylon is left-handed by default).

1 Like