OpenGL Multithread
-
wrote on 26 Mar 2012, 00:35 last edited by
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]
-
wrote on 30 Mar 2012, 14:40 last edited by
: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.
-
wrote on 30 Mar 2012, 14:57 last edited by
Thanks for sharing your solution.
Please mark your post in the title line with [Solved]. Others may find easier this it as something solved.
1/3