Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Not sure how to get started.
Qt 6.11 is out! See what's new in the release blog

Not sure how to get started.

Scheduled Pinned Locked Moved Brainstorm
2 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.
  • M Offline
    M Offline
    mmcdon15
    wrote on last edited by
    #1

    Hey Guys,

    I am trying to make an application that would be used as a level editor for a game I am making. I am looking for it to have a central panel that would be 3D interact-able. I want to be able to drag over a stock shape, a cube or sphere, from the side panel and drop it into the main field. There are more features I want to implement later but I wanted to get start on the heart of the application first and try to learn as much as possible.

    Thanks in advance.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pixaeiro
      wrote on last edited by
      #2

      Hi.

      I'd suggest you to start with the QGLWidget as a viewport. This will allow you to draw your 3d objects. You'll need to implement all the Drag and Drop events (dragEnterEvent, dragLeaveEvent, dragMoveEvent and dropEvent).

      I also suggest you to use a QMainWindow with dockable widgets from where you can grab your assets and drop them in your 3D viewport.

      I implemented something similar in my own image editing application:

      https://www.youtube.com/watch?v=ow8hd_vfUX8

      Good luck with your game!

      pixaeiro
      http://www.pixaflux.com
      Parametric Image Compositing

      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