Rendering output to arbitary quadrilateral
- by Trainee4Life
I want to render output on a device to an arbitary quadirlateral, i.e. project texture on to a quad. What are the possible ways I could implement it?
Till now, I have investigated:
Drawing textured quadrilateral - Quads look odd as they are composed of triangles, and the distortion looks odd. The issue I'm facing has been discussed here and here as well.
Setting transformation on device - Need help in getting this implemented.
Pixel shaders - Not able to implement the desired effect.
Any help would be much appreciated.