World coordinate system in quick 3d
-
Greetings! I'm playing around with qtquick 3d and I cannot understand, what is the default dimensions of built-in shapes, like #Sphere, #Cube etc.? I expected these to be 1x1x1 (and this is, what is actually printed, when I query corresponding Model properties), but for instance on simple qml examples I need to place the shapes at distance about 80 between each other so that the items do not overlap. Also, to get the item to be visible in a window, I need to move camera from the origin by at keast 100 along z axis. What do I miss here?
Rgrds,
-
Hi. The default dimensions of built-in shapes are around the 100x100x100 size, see https://doc-snapshots.qt.io/qt6-dev/qml-qtquick3d-model.html#mesh-format-and-built-in-primitives . Most properties in QQ3D are built around these dimension being the "unit size".