[SOLVED]How does a unit in qt scene compare to real world co-ordinates?

  • In a qt3d scene, I declare my cube size as :

    builder1 << QGL::Faceted;
    builder1 << QGLCube(3);

    How does this number 3 compare to real world co-ordinates i.e if a cube in my 3d scene is 333, what does it mean?

    I am trying to bring in a 3d model in my scene and hence I am trying to resize it before it can actually be brought into the scene?


  • Hi,

    I've never used Qt3D scene but it seems it's based on OpenGL as its graphics library. Anyway, in this kind of 3D environments not aimed for professional design like AutoCAD or something, there isn't really a relation 1 on 1 when talking about digital and real sizes. So, a 3x3x3 cube would mean a cube of 3 units on each dimension. Such units can then be treated as meters, kilometers, centimeters, etc, by your application.

    So, in short terms, "3" may be whatever you want it to be.

  • I verified. It is in meters only.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.