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 create basic custom 3D triangle with Qt 3D?

How to create basic custom 3D triangle with Qt 3D?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 678 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.
  • RayterexR Offline
    RayterexR Offline
    Rayterex
    wrote on last edited by
    #1

    Hello everyone. It is 2021 and I thought maybe there is more documentation and examples for Qt 3D, but looks like nothing has changed. Anyway, I plan to start digging through this black box. Does anyone know how to create basic custom 3D triangle or plane with C++/Python ? That would help me quite a bit

    kshegunovK 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You probably know more about the module than me but i was wondering if you mean like this ?
      https://forum.qt.io/topic/69701/how-to-render-a-triangle-using-qt3d
      (last post)

      RayterexR 1 Reply Last reply
      2
      • RayterexR Rayterex

        Hello everyone. It is 2021 and I thought maybe there is more documentation and examples for Qt 3D, but looks like nothing has changed. Anyway, I plan to start digging through this black box. Does anyone know how to create basic custom 3D triangle or plane with C++/Python ? That would help me quite a bit

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by kshegunov
        #3

        @Rayterex said in How to create basic custom 3D triangle with Qt 3D?:

        Does anyone know how to create basic custom 3D triangle or plane with C++/Python ?

        Yes. Fill an QAttribute with the vertices, add it to a QGeometry instance (typically it's your own subclass). Set the geometry you created to a QGeometryRenderer instance, which you can use as a component for an QEntity.

        Read and abide by the Qt Code of Conduct

        RayterexR 1 Reply Last reply
        3
        • mrjjM mrjj

          Hi
          You probably know more about the module than me but i was wondering if you mean like this ?
          https://forum.qt.io/topic/69701/how-to-render-a-triangle-using-qt3d
          (last post)

          RayterexR Offline
          RayterexR Offline
          Rayterex
          wrote on last edited by
          #4

          @mrjj Yeah. That last reply was exactly what I was looking for :)

          This is pretty good explanation for me. Not as simple as I thought though

          1 Reply Last reply
          0
          • kshegunovK kshegunov

            @Rayterex said in How to create basic custom 3D triangle with Qt 3D?:

            Does anyone know how to create basic custom 3D triangle or plane with C++/Python ?

            Yes. Fill an QAttribute with the vertices, add it to a QGeometry instance (typically it's your own subclass). Set the geometry you created to a QGeometryRenderer instance, which you can use as a component for an QEntity.

            RayterexR Offline
            RayterexR Offline
            Rayterex
            wrote on last edited by
            #5

            @kshegunov Thanks. This makes sense. I will try it out :)

            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