Discussion:
Placing a model over video (webcam captured)
(too old to reply)
caio1985
2008-10-01 12:52:26 UTC
Permalink
Hello everybody,

I'm developing a mixed reality application which captures some points
of the body (using sensors) in real world and draw them on the screen
in form of 3D primitives such as cubes, spheres, cilinders, etc.
In order to achieve that I'm using C# with XNA, the output are these
primities drawn on screen, which moves according to the position of
the sensors.
I've downloaded a library called DirectShowNet which basically is a
wrapper of DirectShow for .NET. There is a sample which comes along
which draws a bitmap over a video file. But this is too far from what
I want to get.

What I want to do, in order to mix realities, is capture video in real
time from a webcam and draw those primities over the video, that's why
I'm writting this post.
Could someone help me on that giving some coordinates so I can get any
progress?

Thanks in advance,

(***@gmail.com)
Michel Roujansky - Senior developer, Starfish Technologies Ltd
2008-10-05 10:29:08 UTC
Permalink
Post by caio1985
Hello everybody,
I'm developing a mixed reality application which captures some points
of the body (using sensors) in real world and draw them on the screen
in form of 3D primitives such as cubes, spheres, cilinders, etc.
In order to achieve that I'm using C# with XNA, the output are these
primities drawn on screen, which moves according to the position of
the sensors.
I've downloaded a library called DirectShowNet which basically is a
wrapper of DirectShow for .NET. There is a sample which comes along
which draws a bitmap over a video file. But this is too far from what
I want to get.
What I want to do, in order to mix realities, is capture video in real
time from a webcam and draw those primities over the video, that's why
I'm writting this post.
Could someone help me on that giving some coordinates so I can get any
progress?
Thanks in advance,
You can do what you describe using DirectShow and the VMR9 "custom
allocator presenter". You have a D3D scene, in which you can draw your
video as a texture on a surface, and you can add anything D3D you
want. Look at the VRM9Allocator sample in DirectShowNet.

Loading...