Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]How does a unit in qt scene compare to real world co-ordinates?
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunil.nair
    wrote on last edited by
    #1

    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?

    Thanks
    Sunil

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BlastDV
      wrote on last edited by
      #2

      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.

      (8) Just live your life blind like me (8)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sunil.nair
        wrote on last edited by
        #3

        I verified. It is in meters only.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved