Bystrov Sergey
11-24-2009, 11:10 AM
Hi
I display live video using OpenGl. So, I do YUV=>RGB transform on GPU and display it, using shaders. Evrything works fine until I want to draw some text on the video (like fps or smth).
I've looked at QT example opengl/overpainting. But it does't work in my case. It seems like drawText/renderText uses the same mechanisms to draw text as I use to draw video.
So as the result I do not see text at all. But at the same time I can draw lines on the video and smth like that... I'm not very good ( not good at all in GL). So can you please help me.
Here is minimized code( it is still big, sorry for that)...
http://www.qtforum.org/index.php?page=At...374cde0ba5a6030 (http://www.qtforum.org/index.php?page=Attachment&attachmentID=2254&h=4c75 0b3dca51fc00870820064045d6a62d5a1673&s=063f76f46e6 db00ad2566a843374cde0ba5a6030)
UPD:
I think that my shaders some how corrilates( broke ) with renderText.
I display live video using OpenGl. So, I do YUV=>RGB transform on GPU and display it, using shaders. Evrything works fine until I want to draw some text on the video (like fps or smth).
I've looked at QT example opengl/overpainting. But it does't work in my case. It seems like drawText/renderText uses the same mechanisms to draw text as I use to draw video.
So as the result I do not see text at all. But at the same time I can draw lines on the video and smth like that... I'm not very good ( not good at all in GL). So can you please help me.
Here is minimized code( it is still big, sorry for that)...
http://www.qtforum.org/index.php?page=At...374cde0ba5a6030 (http://www.qtforum.org/index.php?page=Attachment&attachmentID=2254&h=4c75 0b3dca51fc00870820064045d6a62d5a1673&s=063f76f46e6 db00ad2566a843374cde0ba5a6030)
UPD:
I think that my shaders some how corrilates( broke ) with renderText.