Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WebGL equirectangular image viewer.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
zuho.js - WebGL equirectangular image viewer Features: - Rendering quality. - Use QMC sampling to handle highly nonlinear anisotropy. - Pseudo gamma-corrected calculation. - Use two shaders (better speed vs better quality) adaptively. - Support many projection methods. - It is also very easy to add custom projection functions. See "Mapping" in "zuho.js". - No dependencies, small, easy to use. - Requires only "zuho.js", which is less than 600 SLOC. Usage: | <script defer src="zuho.js"></script> | <div class="equirectangular" data-src="your_favorite_image" style="width: 720px; height: 480px"></div> See "index.html" for example and "zuho.js" for detailed usage. Although JS API is not stable and not documented yet, it is easy to use because zuho.js is a tiny library. Manipulation: Rotate : Left drag. Zoom : Wheel or Shift + mouse left drag. TODO: - UI. - Support touch events. - Interpolation when zooming. - Read XMP metadata. - More high quality rendering with WebGL2. Tips: "zuhô (図法)" is the Japanese word which means "map projection method".