I am working on a project that requires capturing image with a camera and then pasting the image onto a rotating/moving billboard and display it in 3D graphics real-time. There are also other smaller billboards displaying other images within the scene, like fractured glasses flying all around while reflecting various images. I think the best way is to use DirectX graphics to render this. I am new to DirectX and thus need help. One way I can think of is to first convert the image to bitmap file (or other graphics file format) in memory, and then use D3DXCreateTextureFromFileInMemory() to map the image to the 2D rectangular plane, before applying the 3D marix to rotate the plane. But the overhead in suh conversion might make it too slow for real-time because the image is big (1280x 1024pixels). StretchRect() is not useful as it only match to rectangles.
Anyone has experience or suggestion ?Help most appreciated.