Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using accumulation buffer #1961

Closed
liebrand opened this issue Jan 21, 2016 · 2 comments
Closed

Using accumulation buffer #1961

liebrand opened this issue Jan 21, 2016 · 2 comments

Comments

@liebrand
Copy link
Contributor

Slightly bizarre left field question this. But I'm trying to add a "wind layer" to my map. At the moment I've implemented this rather crudely by adding a canvas on top of my map. Whilst this "works", it's far from efficient. It also makes interaction with the map very difficult, as panning/zooming/etc would just be a nightmare.

Furthermore, the idea of using particles to show the wind practically begs for a webGL implementation. So I've been looking at the shaders and the various drawXXX painters. This would obviously be a very custom fork of that code, but I was wondering if you think this is the right place to look for adding this?

Ie does it make sense to add a new drawer that (if possible??) uses the accumulation buffer to achieve nice particle trails?

Here's an example of my current canvas based solution:

http://savvy-navvy.com/s/images/wind.mp4

@averas
Copy link
Contributor

averas commented Jan 21, 2016

Not really based on Mapbox GL JS, but perhaps you can draw inspiration from https://github.com/cambecc/earth which looks quite similar to what you're doing. If you want inspiration for how to do it with WebGL a similar project can be found at https://github.com/blendmaster/geoid/tree/master/webgl

@lucaswoj
Copy link
Contributor

This is a duplicate of #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants