I have implemented a version of the Cube sample from the DirectShow SDK in C#. You can find more info here.