For the last 7 years I’ve been working on a WebGL powered mapping library, that I’ve been providing on a commercial basis via www.procedural.eu. It’s been used by millions of users across different products
I recently decided to change the approach and instead provide a new library on an open-source basis, along with an supporting elevation API (www.nasadem.xyz).
Procedural GL JS is a complete reworking of the original library, with the following features:
* Stream in standard raster imagery tiles. Supports map tiles from a variety of providers
* Batteries included elevation data. Global 3D data coverage courtesy of nasadem.XYZ
* Powerful overlay capabilities. Draw crisp markers and lines
* Well-thought-out API, complex applications can be built without needing to deal with 3D concepts
* Great UX and intuitive controls, mouse-based on desktop & touch-based on mobile
* Tiny filesize means library is parsed fast. Package size is less than THREE.js thanks to code stripping
I’m planning a series of blog posts about how it works in the future, but for today it’s just the launch. Happy to answer any questions!
Congrats! The demo runs great and the API does seem simple indeed. With a quick scan I couldn’t find the code of the LOD system. I can see you use an array texture to upload the map images in chunks but I presume that’s not it?
Correct, the array texture is just an atlas which I write chunks to to avoid having to bind many different textures on each frame. I had a version working with an actual WebGL2 array texture, but switched to an emulation so as to support WebGL1.
Thanks for the explanation. That kind of feedback between CPU and GPU must be difficult to do reliably on WebGL :) Performance-wise, I mean. But it looks like you’re doing some manual pipelining there to keep the transfer bandwidth low.
Yes, it took some time to get working. And still I’m not completely happy, as it sometime stalls the pipeline, due to the fact that the readPixels operation can’t be done asyncronously. Thus if prior to the read the command buffer is longer than usual (e.g. a texture upload has just slowed it down), then it leads to a long frame