How to overlay direct3d in directshow

I am looking for a tutorial or documentation on how to overlay direct3d over video (webcams) in directshow.

I want to provide a virtual webcam (a virtual device that looks like a webcam for the system (i.e. so that it is used where ever a regular webcam could be used as IM video chats)

I want to capture a video stream from a webcam attached to a computer. I want to lay a 3d model on top of the video stream and provide this as output.

I planned to do this in a direct show just because he looked possible in that. If you have any ideas on possible alternatives, I’m all ears.

I am writing C ++ using visual studio 2008.

+3
source share
2 answers

Use the Video Mixing Renderer Filter to render the video into a texture, and then render it onto the scene as a full-screen quad. After that, you can display the rest of the 3D material on top, and then present the scene.

+3
source

Are you after the filter, which is somewhere on the graph that transfers D3D material on top of the video?

, CTransformFilter. - EZRGB - . , , 3D- , , . , Direct3D , , / 3D- show. , ( D3D), , , , .

: . ( CPushSource). , . , IFilterMapper2:: RegisterFilter DLLRegisterServer "CLSID_VideoInputDeviceCategory". Direct3D , .

DirectShow SDK Windows , , , .

+1

Source: https://habr.com/ru/post/1744684/


All Articles