Norris's picture

GLcontrol background image or webcam stream

Hi !
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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
iliak's picture

Look at glOrtho to setup an orthognal matrix (2D mode or GUI mode if you prefer).

sgsrules's picture

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.