Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Multiple opengl screens

    Game Development
    3
    4
    3056
    Loading More Posts
    • 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.
    • I
      imranrobotics last edited by

      Hello i am new to QT. Earlier i was thinking its difficult to use it btu now i think its a nice and easy and awesome tool.

      Anyways i developed a small3D game in Horde3D game engine that uses opengl for creating a window that shows the graphics
      but it doesn't support creating more then one window. some one suggested me to use QT for creating four windows
      but i have no idea how should i start. :(

      I have four different camera views already in my game but those are displayed in the same opengl window .
      I think QT is the best option here to do that? can some one suggest me any tutorial for creating such thing ?

      1 Reply Last reply Reply Quote 0
      • S
        Skylar last edited by

        May be using multiple QGLWidget on the same parent windows.

        http://doc-snapshot.qt-project.org/5.0/qglwidget.html#QGLWidget-2

        In most cases, the bug is mine. But of the remaining lines are correct.

        1 Reply Last reply Reply Quote 0
        • I
          imranrobotics last edited by

          Thank you so much
          i started looking at it and it seemed quite helpful . i was just looking at the hellogl example and i just tried to make two windows with that program just creating a new instanceof the window and it worked. am i going in the right direction?

          1. how can i integrate qt with my game engine ? i am using Horde3D game engine
            if any1 else wants to direct i will be thankful

          Thank You once again

          1 Reply Last reply Reply Quote 0
          • H
            hipersayan_x last edited by

            If you want to show multiple camera views in your game, a better approach is to use viewports:

            http://nehe.gamedev.net/tutorial/multiple_viewports/20002/

            1 Reply Last reply Reply Quote 0
            • First post
              Last post