Jump to content
Xtreme .Net Talk

Draw live video feed as background, and display 3D graphics on top


Recommended Posts

Posted

Hi!

 

I extract live video from a camera, and I want to display this as the background of a Direct3D application.

 

What I want, is to use the live video as background, and then draw 3D graphics on top.

 

The video images are either on array form (unsigend char) or on a proprietary format (National Instrument's IMAQ Image).

 

How can I do this in the most effective manner? I want as many frames per second as possible.

 

Suggestions, tutorials, example code etc. are highly appreciated :-)

 

Thanks!

 

Torbjørn

 

PS! I have used OpenGL in the past, but not Direct3D (yet). I am open to use both C++ and/or C#. Have not set my mind yet.

Posted

It reminds me of Final Fantasy 7 on the pc. There was some scene like the Goldsaucer flyer and others where you could see that the picture was getting blurry because of the poor quality of the video in the background. You could still see the main character in good 3D.

 

As for help, I cannot do more for you.

Sorry.

Posted
You could try putting pic on a Direct3D Surface, CopyRects it to the background then do you're normal BeginScene>EndScene>Present (This is working on D3D8 logic so the function CopyRects may have a replacement)
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
  • 2 months later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...