Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QGL::SampleBuffers and stencil buffer based picking
Forum Updated to NodeBB v4.3 + New Features

QGL::SampleBuffers and stencil buffer based picking

Scheduled Pinned Locked Moved Game Development
1 Posts 1 Posters 1.5k 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.
  • J Offline
    J Offline
    jcxz
    wrote on last edited by
    #1

    Hi,

    i have a 3D OpenGL application, where I implement object picking with stencil buffer.
    To have the polygons rendered nice and smooth, I used an OpenGL context with QGL::SampleBuffers enabled.
    However the problem is that now when I resize/maximize the window picking stops working correctly.
    It seems like if the stenciling buffer keeps its original dimensions and does not resize on window resizing/maximization.
    When I turn of antialiasing, picking works as expected including resizing the window. Yet another interesting thing
    is that when I start my window maximized, stenciling and antialiasing work together as expected.

    So my question is, can I use QGL::SampleBuffers together with stencil buffer in Qt ?
    If so, what else do i have to enable to make it work reliably ?

    I am using Qt 4.8.1 on Windows with MSVC compiler, but I would like the solution to work on as many platforms as possible.
    For displaying the scene I am reimplementing the drawbackground() method of QGraphicsScene.

    Thanks for your answers

    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