Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    QOpenGL double precission

    General and Desktop
    4
    8
    1238
    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.
    • G
      glararan last edited by

      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 Reply Quote 0
      • W
        wrosecrans last edited by

        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 Reply Quote 0
        • G
          glararan last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • Z
              ZapB last edited by

              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 Reply Quote 0
              • G
                glararan last edited by

                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 Reply Quote 0
                • Z
                  ZapB last edited by

                  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 Reply Quote 0
                  • G
                    glararan last edited by

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

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