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. OpenGL Selection Mode

OpenGL Selection Mode

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k 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.
  • S Offline
    S Offline
    stevewang
    wrote on last edited by
    #1

    Hi all,

    I want to do some data visualization with picking function using GLWidget.
    I learned that the selection mode in OpenGL is deprecated. So can I ask whether it is still supported in QT GLWidget? If not, what is the best way to do my task? (I had over 1M points and lines to visualize)

    Thank you very much.

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

      QGLWidget supports whatever features that the underlying OpenGL provides. If you want to use the deprecated picking mode then you need a non-Core profile context if using OpenGL >= 3.2 or a context <= version 3.1.

      I would suggest however that you do not write new code using deprecated features.

      Picking in modern OpenGL is done in different ways. Typically either you

      perform a ray cast form the eye point through the cursor point and calculate which of your objects the ray passes through and select the nearest one.

      use colour picking as described at "this article":http://antongerdelan.net/opengl/colourpicking.html

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      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