
GLcontrol background image or webcam stream
Posted Wednesday, 2 June, 2010 - 20:38 by Norris inHi !
I don't find an easy way to draw a simple image as background of my 3D scene.
I have tested e.Graphics.DrawImage in my OnPaint method,obviously, that does not function.
My camera is oriented in my world, so, my background image/video must be oriented front of the camera and at a good size/distance for filling the view.
I must create a rectangle polygon with a texture ? if yes, How can I make for it appear behind my scene ?
Is there an easy way for embedding webcam stream in OpenGl / OpenTK and .Net ?


Comments
Re: GLcontrol background image or webcam stream
Look at glOrtho to setup an orthognal matrix (2D mode or GUI mode if you prefer).
Re: GLcontrol background image or webcam stream
Draw a fullscreen textured quad with your background image on it first. then clear the depth buffer (not the color buffer) anything you draw will be drawn over your image.