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. QOpenGL double precission
QtWS25 Last Chance

QOpenGL double precission

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 1.6k 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.
  • G Offline
    G Offline
    glararan
    wrote on last edited by
    #1

    Hi,

    Is there any way how to ask for implementation double precission? In OpenGL 4+ its bit important and there is huge result...

    !http://image.slidesharecdn.com/gtc2010opengl-100924140333-phpapp01/95/nvidias-opengl-functionality-46-728.jpg?cb=1285388123()!

    Thanks.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wrosecrans
      wrote on last edited by
      #2

      https://www.opengl.org/wiki/Data_Type_(GLSL)#Basic_types

      As long as the implementation and hardware support it, and you are using at least OpenGL 4, you should just be able to use double as a datatype in your shaders and have it work. Are you running into some sort of problem?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        glararan
        wrote on last edited by
        #3

        When you passing C++ data to GLSL there is problem... Qt using glUniform without double precission thats problem... I have to write my own instead using Qt :/ That's why I am asking for implementation...I won't change QOpenGLShaderProgram for custom

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          The forum is not the right place for feature requests. You should use the "bug report system":http://bugreports.qt-project.org Don't forget to check if there's not already something

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

            Use doubles how? As vertex attributes or uniforms or within UBOs or SSBOs or something else? What use case are you trying to support?

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply
            0
            • G Offline
              G Offline
              glararan
              wrote on last edited by
              #6

              On bugtracker I found answer, QMatrix4x4 and others like QVector going to be implemented by double in Qt 6.0. My point was to pass double values into shader but it was still useless when we have QVector float instead of double.

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

                Do you have a reference for that please? I don't see why we can't add double precision overloads in the Qt5 series.

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  glararan
                  wrote on last edited by
                  #8

                  https://bugreports.qt-project.org/browse/QTBUG-42833

                  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