Giter Site home page Giter Site logo

mwisniewski0 / globus-map-projector Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 3.0 323 KB

WebGL-based program for converting between different projections of the sphere

License: BSD 3-Clause "New" or "Revised" License

JavaScript 9.39% PHP 0.57% HTML 83.10% CSS 0.27% GLSL 6.68%

globus-map-projector's Introduction

globus-map-projector's People

Contributors

mwisniewski0 avatar

Stargazers

Thomas Gratier avatar fwiffo avatar  avatar  avatar  avatar  avatar Patrick J Moran avatar Chris Crewdson avatar Vojtěch Leischner avatar Carlos avatar Abraham Binder avatar Russell Skorina avatar Tom Christ avatar  avatar Kai Carver avatar

Watchers

James Cloos avatar  avatar  avatar

globus-map-projector's Issues

Impossible to save large canvases on all browsers

  • Saving large canvases is impossible on all major browsers. It is a browser-side issue
  • The possible solution includes dividing the canvas into smaller savable canvas. Then the user can save the result and stitch it back together.
  • To ease the process, the stitched up image could be uploaded to a storage service like gdrive
  • Firefox claims to support unlimited length of data urls. This might enable saving the stitched canvas from an tag with src=.
  • Splitting the image into smaller canvases would also fix issue #2

Perform rendering in a web worker

Issue #3 requires rendering to multiple canvases. This gets fairly slow for bigger canvases, and it would cause the UI to freeze for minutes. Processing the rendering in a web worker will allow to handle UI events as the rendering happens in the background. Moreover, a progress bar will be possible to display too.

Browsers limit effective render size

  • All browsers reduce the size of the WebGL draw buffer for large canvases (usually over 4096px in width or height).
  • Until the issue is solved, the problem is least visible on Firefox, which accepts canvases up to 16000px in width and height (tested on yoga 720 with GTX 1050M).
  • The browser will stretch the render to the original size of the canvas causing jagged or pixelated images.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.