Friday, February 13, 2015

Deep zoom in Unity

I faced a problem of showing a high-resolution images. The problem was to provide the ability to interactively view big pictures and zoom deeply. Well first idea of just scaling a picture is not worth of mentioning, because the quality of the zoomed image is really bad. Next thing I saw was an microsoft silverlight technology called Deep Zoom. You can read more about it by following the link. Main idea is to make several copies of original image with different resolution, divide them into tiles and show not whole image with resolution 20000 by 20000 but only visible tiles. They call it an image pyramid. Worth mentioning that google maps uses basically the same idea. So I've tried to implement that idea to show really big images with deep zoom in Unity project. To watch this demo you need to enable Unity plugin first. Them you can interact with map and use zooming.
Clone google maps in Unity