I'm creating a web app in ASP.NET like this one: http://www.zazzle.com/cr/design/pt-mug
I know how to do everything except wrapping an image around an object. It would be a simple task to do if I would only have to stack an image on top of the other, if they were flat, but if it is a round object, as this mug is, it's kinda tricky.
My first guess was to create some sort of algorithm for GDI+ that would simulate "wrapping" image around an object (actualy it wouldn't be an 3d object, it would just be a screenshot of it).
I figured it would be to raw approach and it would result in very bad quality, if I could ever make it work.
So, my second guess was to implement somekind of 3d renderer to whom I would give an image map for some object, it would render me that image onto an object and in real time return me rendered image. Is that posible? Is there any other way? Where do I start?