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. QT feamework for OpenGL - Just like NeHe for Windows
Forum Updated to NodeBB v4.3 + New Features

QT feamework for OpenGL - Just like NeHe for Windows

Scheduled Pinned Locked Moved General and Desktop
13 Posts 5 Posters 5.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.
  • Z Offline
    Z Offline
    ZapB
    wrote on last edited by
    #3

    What do you want in such a framework? Qt already provides QWindow, QOpenGLContext, QOpenGLBuffer, QOpenGLShaderProgram...

    We (KDAB) has such an example framework for OpenGL-based Qt applications but it is part of our training business stream so I can't just give it away (unless you attend a training of course).

    I am planning a series of blogs on OpenGL woth Qt so if you let me know what sort of stuff you would like to see I will try to get it into the example code published with the blogs.

    Nokia Certified Qt Specialist
    Interested in hearing about Qt related work

    1 Reply Last reply
    0
    • U Offline
      U Offline
      utcenter
      wrote on last edited by
      #4

      Qt will do the "window" and context creation for you, all you need to do is write your OGL code.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Andrew
        wrote on last edited by
        #5

        Hi..

        Sorry for late reply..

        What I mean by framework is just Windowing using Qt.
        Like Init() function to initialize light and material properties
        Draw() funtion to actually write OpenGl code logic
        Keybord() function to handle key-presses by user
        Reshape() function to handle movement of window

        I have used glut which offers this functionality. It has attempted to use callback functions.
        One of my senior suggested me to use Qt for "windowing". I have never touched Qt till now.

        I do not want to use Qt implemented OpenGL code.. Like while doing texture mapping, I have read that this can be done in Qt using just 2 lines of code. I do not want that. I want an area to draw.

        I have visited The link provided by Jarope, but Wesley Stessen's Page is down. It would be really helpful
        if someone could show me a simple program.

        Thanks
        Andrew

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #6

          I will try to do this over the weekend. Watch this space...

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jarope
            wrote on last edited by
            #7

            ZapB that would be very useful if you could!

            Andrew,

            http://www.cs.tufts.edu/comp/175/support/Tutorial.pdf

            This may also help.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              john_god
              wrote on last edited by
              #8

              The book "OpenGL 4.0 Shading Language Cookbook" uses Qt framework for their examples, however all the code is written with native OpenGL. You can download the examples source from the book site, there's a first "classic" example that draws a triangle, and others.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jarope
                wrote on last edited by
                #9

                sounds good John will go see that as well.

                I am trying to get all my course work based on Qt. so far I have my chat program working and the next graphics!

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jarope
                  wrote on last edited by
                  #10

                  HI ZapB,

                  Really hoping you can get some time to do a basic of basics, Here is a Qt opengl window!

                  thanks

                  JAson

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jarope
                    wrote on last edited by
                    #11

                    Andrew,

                    Did you get this sorted? I managed to use the hellogl example to strip out all the Qlogo class and other components and get back to a basic open gl window in which to place my openGL code.

                    Wondered if you had managed any other way?

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Andrew
                      wrote on last edited by
                      #12

                      Oh ya.. actually I did..
                      And also what I have experienced is that as we move ahead doing OpenGL, framework changes a lot(actually a little everytime)!

                      I have actually created something like NeHe, fullscreen many things like that..

                      Would it be correct to post entire framework here? Its five files overall.. ?

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        jarope
                        wrote on last edited by
                        #13

                        Hi Andrew,

                        Not sure what the rules are here about posting files but I am happen to have a look at them and share what I have with you perhaps we should do this via email? You can use my profile link to do this.

                        Regards

                        Jason

                        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