Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Dynamic generation of QEntity and QGeometry data

Dynamic generation of QEntity and QGeometry data

Scheduled Pinned Locked Moved Solved Game Development
6 Posts 2 Posters 1.1k Views
  • 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.
  • T Offline
    T Offline
    Tomasu
    wrote on last edited by
    #1

    I started working on a little demo to do some traffic simulation, but I'm stuck at getting the entities to render properly (or at all). A previous version I had that just renders a bunch of Line primitives via a QBuffer worked just fine (but not indexed line strips for some odd reason... thats another story) but I've now changed to dynamically creating entities each with their own portion of the over all city "map". It's structured as a QuadTree, where each leaf quad gets its own entity. I've got it creating the entities, and it appears to properly generate the geometry via GeometryFactory's and QBufferDataGenerator's. But so far it hasn't actually rendered anything.

    I've got my current project up at https://github.com/Tomasu/CitySimDemo. it uses git-lfs for the data files which are a little big (100MB+) so if you were to attempt to build it, you'd need to install git-lfs. Other deps are cmake, Qt5 (currently building against 5.12.2), GDAL, and boost-graph.

    I'd appreciate any help.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tomasu
      wrote on last edited by
      #2

      I did manage to figure out my initial problems with doing dyamic generation of geometry and entity's themselves. I was actually not entirely finished implementing the QuadTree code.

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

        But no screenshots ? :)

        T 1 Reply Last reply
        0
        • mrjjM mrjj

          But no screenshots ? :)

          T Offline
          T Offline
          Tomasu
          wrote on last edited by
          #4

          @mrjj said in Dynamic generation of QEntity and QGeometry data:

          But no screenshots ? :)

          Haha, Nothing impressive at least. Just some debug output.

          0_1561802174055_Screenshot_20190628_122059.png

          mrjjM 1 Reply Last reply
          1
          • T Tomasu

            @mrjj said in Dynamic generation of QEntity and QGeometry data:

            But no screenshots ? :)

            Haha, Nothing impressive at least. Just some debug output.

            0_1561802174055_Screenshot_20190628_122059.png

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Tomasu
            Oh that looks cool.
            Like an infection zone chart from a horror movie. :)

            T 1 Reply Last reply
            1
            • mrjjM mrjj

              @Tomasu
              Oh that looks cool.
              Like an infection zone chart from a horror movie. :)

              T Offline
              T Offline
              Tomasu
              wrote on last edited by
              #6

              @mrjj Haha, I suppose it does. I think if it were in circles or odd shapes it'd look more like it. hehe.

              1 Reply Last reply
              1

              • Login

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