Wrapping an image around 3d object for easy 2d printing
Looking for method for wrapping a 2d image around a 3d object, such as a helmet, and then unwrapping it back to 2d image to allow pri开发者_StackOverflownting. For example, you have a photograph that you want to use to wrap a bike helmet. You do not want the image to be distorted even though it will be wrapped on complex 3d object. Once sized and positioned correctly, you need to create a 2d image that can be printed on an ink-jet printer, trimmed and then applied to the helmet.
I think there is probably overlap in these requirements and 3d textures used in games.
In MATLAB you can use warp once you've defined a surface which can be represented in several ways, such as this.
It is not possible to map an image to an arbitrary surface without distortion. I think it is not possible if "the surface does not consists of straight lines" like for example a cylinder or cone does. The same holds for you print - you cannot wrap a flat printout around an arbitrary surface except it is stretchable or you add (many) cuts until it approximately fits the surface.
精彩评论