View Full Version : OpengGL superimposed on video?
I`m trying to write a win2k program that will show wire-frame models superimposed on live video images. I capture the video with a framegrabber, which gives me a pointer to the image data (bitmap). Can anybody guide me on how to put this image behind the 3D scene fast (preferably at 30 frames/sec)? Thanks
05-05-2001, 08:06 PM
Draw your image as a big texturemapped polygon that covers the screen. BTW, when you do this, turn off depth buffer writes and depth tests. The, turn depth writes and tests back on, and render your scene.
05-06-2001, 12:02 AM
Wouldn't a glDrawPixels be faster than mapping?
I would think doing a glDrawPixels after a screen clear (or instead of, I suppose) would yield the result. Then just draw your wireframe as normal.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.