Putting the image on any flat surface is pretty easy. You can use
System.Drawing.Graphics
. As you are working with ASP.NET, you will probably need to draw on a bitmap. This is not a problem at all, use the instance obtained from previously created instance of a bitmap:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.fromimage.aspx[
^].
Now, suppose you can already draw a cuboid using some
parallel projection, to keep things simple. How to draw on a tilted
face of the cuboid. In case of cuboid and parallel projection, it's really simple. You should do some drawing in a rectangle or the same size and aspect ratio as the cuboid face in question, before doing the projection. But! you need to rotate and skew the image accordingly, to fit the face after projection. You can do it using the
Transform
property:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.transform.aspx[
^],
http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.matrix.aspx[
^].
All the detail of the drawing under transform will be projected accordingly, even the features if the shape of every character, everything. The mathematics is the matrix algebra and geometry, very simple (especially in case of cuboid an parallel projection), but you should do it. I did it; the look is impressive enough. :-)
—SA