Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bzroom

OpenGL Directshow, drawing opengl over the top?

This topic is 5181 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I modified the PlayWnd directshow example to set a pixelformat and setup opengl. I have a frame function is called from the message pump. I know its getting called like it should because I had a messsage box pop up everyframe. The opengl doesn''t affect it at all. Clear will not clear the screen and nothing is drawn. What I''m trying to do is have directplay playing what I tell it to in the back, then drawing an opengl interface over the top of it. How should I do this?

Share this post


Link to post
Share on other sites
Advertisement
The best way is probably to develop your own DirectShow filter to render into an OpenGL framebuffer.

It''s not too hard to do.

That way you''d be dealing purely with OpenGL within that window, and not with both OpenGL and DirectGraphics at the same time, which is pretty much always guaranteed to fail.

Share this post


Link to post
Share on other sites
take a look at the avi->texture sample in the directshow part of the SDK. That sample creates a DX texture, but it should point you in the right direction.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!