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. GlReadPixels behave weird on QGLWidget

GlReadPixels behave weird on QGLWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 681 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.
  • P Offline
    P Offline
    psyth16
    wrote on last edited by
    #1

    Hi there,

    I'm a beginner of Qt. I'm using Qt 5.2.1.
    To make a pickup function of vertices on OpenGL, I used glReadPixels, which is a function of OpenGL.
    However, it returns a wrong value, so I cannot obtain correct depth from glReadPixels.
    I guess x,y coordinate of openGl does not correspond to those of QGLWidget correctly.

    Could anyone help me? My priority is to make a pickup function, so if you have an alternative, it should be fine as well.

    Thanks.

    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