HTC HD2 DirectX 3D, DirectShow HUD (Head-up display)

This is my first working HUD. It demonstrates a HUD which uses the tilt & compass sensors. Live camera preview is used to fake transparency. Please rate to let me know if this is cool or not! Thank you. Update: I noticed a bit of traffic to these movies so I googled around and saw some discussions going on about it on other sites. You guys are right, the camera preview isn’t as fast as I would like. I have another test application which only uses DirectShow to play the camera preview as a movie and that is fast. However, the camera view is rotated so a custom DirectShow filter has to rotate the pixels, which makes it quite slower. No colorspace conversion is required when using DirectShow. The Direct 3D part is accelerated, rendering a 3D object with a static texture is super fast. But in order to render the video onto a directX texture, I have to convert the pixels from YV12 colorspace to RGB. I don’t think this can be done with hardware acceleration and thus this makes it very slow.

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter