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 Multithread
Forum Updated to NodeBB v4.3 + New Features

OpenGL Multithread

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.6k 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.
  • U Offline
    U Offline
    umerlaton
    wrote on 26 Mar 2012, 00:35 last edited by
    #1

    Hi everyone,
    i am using opengl to render video frames from opencv.For example, I want to displays several webcams in several opengl widgets .This works fine when having only one instance of a QGLWidget rendering one camera but when running several instances of this widget it seems that they are all sharing the same texture and i get flickering image with the cameras image superposed.I also try this with video file(USING DIRECTSHOW->OPENCV for image proccesing->QGLWIDGET to render).
    I believe it has to be something with multithread opengl but I still cant figure it out. I would appreciate if anyone can help me with this.

    Thanks

    [Edit: Removed the all upper-case SHOUTING! from the title to make it less Exciting! -mlong]

    1 Reply Last reply
    0
    • U Offline
      U Offline
      umerlaton
      wrote on 30 Mar 2012, 14:40 last edited by
      #2

      :D SOLVED. my mistake was that i wasnt setting my opengl context properly ,I used wglMakecurrent or this-->makecurrent() function

      If anyone got any question about this,Ill be glad to help :)

      Umer.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on 30 Mar 2012, 14:57 last edited by
        #3

        Thanks for sharing your solution.

        Please mark your post in the title line with [Solved]. Others may find easier this it as something solved.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0

        2/3

        30 Mar 2012, 14:40

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved