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. How to draw more compicated wireframe ?
Forum Updated to NodeBB v4.3 + New Features

How to draw more compicated wireframe ?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 1.8k Views 2 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.
  • X Offline
    X Offline
    xmaze
    wrote on last edited by
    #1

    Hi, i have a question i use this code to draw a triangle :

    QRectF rect = QRectF(-10, -10, 15, 15);
    QPainterPath path;
    path.moveTo(rect.left() + (rect.width() / 2), rect.top());
    path.lineTo(rect.bottomLeft());
    path.lineTo(rect.bottomRight());
    path.lineTo(rect.left() + (rect.width() / 2), rect.top());
    

    and i want to make a more complicated wireframe, i want to draw something like an airplane, do you have a suggestion to me ? How can i use an other program to be more useful and more efficiency?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi,

      Do you want to draw it in 2D or 3D ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      X 1 Reply Last reply
      0
      • X Offline
        X Offline
        xmaze
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Do you want to draw it in 2D or 3D ?

          X Offline
          X Offline
          xmaze
          wrote on last edited by
          #4

          @SGaist
          Hi, sorry for the delay, i want in 2D, 3D is also a good idea but i think it is very complicated.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            What's currently done for 3D is that you have your objects models stored in defined formats and you load these files at run time to easily create these objects (take a look at Qt3D if interested) You could do something similar for your 2D elements.

            Hope it helps

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            X 1 Reply Last reply
            0
            • SGaistS SGaist

              What's currently done for 3D is that you have your objects models stored in defined formats and you load these files at run time to easily create these objects (take a look at Qt3D if interested) You could do something similar for your 2D elements.

              Hope it helps

              X Offline
              X Offline
              xmaze
              wrote on last edited by
              #6

              @SGaist
              I think i did not understand, how can i draw a 2d model with a program? cause programmatically it is very very difficult.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                You need to parse the model and build the instructions to draw it based on that. Or just have an image of what you want to render. Depending on your goal you should take a look at e.g. V-Play

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                X 1 Reply Last reply
                0
                • SGaistS SGaist

                  You need to parse the model and build the instructions to draw it based on that. Or just have an image of what you want to render. Depending on your goal you should take a look at e.g. V-Play

                  X Offline
                  X Offline
                  xmaze
                  wrote on last edited by
                  #8

                  @SGaist

                  do you know http://www.flightradar24.com ? i would like a plane like the planes from this websites.

                  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