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. Isometric view in QML
Forum Updated to NodeBB v4.3 + New Features

Isometric view in QML

Scheduled Pinned Locked Moved Game Development
5 Posts 3 Posters 4.1k 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.
  • B Offline
    B Offline
    Brandybuck
    wrote on last edited by
    #1

    I am in the process of starting to write a game in QML with an isometric view (e.i. Civ-like). An isometric view is essentially a grid, with every other row staggered so as to simulate an isometric perspective. The backend would probably be a QAbstractTableModel, but doesn't have to be, I'm just getting started. Creating an isometric view be awkward at best in Graphics View, but seems very daunting in QML, which has no straightforward way to create new views. What would be the best way to create an isometric gameboard in QML?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      electrohamster
      wrote on last edited by
      #2

      I am currently working on an isometric civ-like tile project myself in Qt5. I am far from an expert on the mater but here are my thoughts. To others, feel free to say I don't know what I'm talking about. I'm still testing things out and the below opinions aren't written in stone.

      QML - While super useful for some simple graphics you are going to have trouble with more advanced graphics. Unless this is a very simple game I'd recommend reserving QML for UI programming only. See http://qt-project.org/forums/viewthread/16110/

      QGraphicsView- In my experience, while the QGraphicsView is really really cool, it is ultimately beter suited for desktop application development and not serious graphics programming. Again, if you are making a simple game then feel free to use the QGraphicsView but for my purposes it just isn't flexible enough. I strongly recommend you tear apart http://www.mapeditor.org/ . It has excellent examples in Isometric rendering and if you look close enough you'll begin to understand some of the limitations of the QGraphicsView.

      1. OpenGL - I'm currently reimplementing my prototype in OpenGL and expect I'll be happy with the results. I recommend looking at https://github.com/lendrick/Orange-Engine/wiki . While it isn't an iso game it is the only source code example of serious OpenGL progaming with Qt that I can find on the internet.
      1 Reply Last reply
      0
      • E Offline
        E Offline
        electrohamster
        wrote on last edited by
        #3

        errrr...... I mean serious 2D game programming in OpenGL with Qt

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Brandybuck
          wrote on last edited by
          #4

          Part of the reason I am doing this is to learn QML, and have some fun while doing it. I've already learned a lot just by trying to figure out what's possible. This is NOT going to be a fancy Civ5 type of game, so I don't need write it all in OpenGL just to eek out a couple more frames a second.

          There is a big school of thought out there that says "use QML for absolutely everything". I think that is taking it too far, but surely it's within the parameters of the framework to use it for a tiled game display.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kakadu
            wrote on last edited by
            #5

            "I was developing":https://github.com/Kakadu/proelium a civilization-like animation recently using GraphicsView from QtGui. Maybe it will be interesting for you.

            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