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

Add WebGL backend #1

Open
EricForgy opened this issue Apr 9, 2019 · 0 comments
Open

Add WebGL backend #1

EricForgy opened this issue Apr 9, 2019 · 0 comments

Comments

@EricForgy
Copy link
Owner

From Slack:

Simon Danisch [6:30 PM]
@eric Forgy since I can't find the issue where you posted about webgl anymore, here is my comment about the webio backend:
The sort of backend you imagine seems to be very close to a plotly makie backend... I'd recommend just creating a plotly backend with Plotly.jl (or whatever package it was that has the better support for interactivity 😛 )

It would be a nice stop gap solution while we don't have a native webgl backend, which is quite a bit more involved
It should be pretty straight forward to get a first prototype running, since you just need to support a few basic plotting types 😉 The biggest difficulty for me so far was just figuring out all the different plotly attributes one needs to set, to e.g. make a "raw" line plot (no axis etc)
these are the basic attributes one needs to define, and you can also see what kind of parameters one needs to forward:
https://github.com/JuliaPlots/AbstractPlotting.jl/blob/master/src/interfaces.jl#L36
you can see the basic methods you need to overload for a backend here:
https://github.com/JuliaPlots/CairoMakie.jl/blob/master/src/CairoMakie.jl#L486
the draw_atomic overloads in CairoMakie may be quite a bit simpler with plotly, since you could just reuse the plotly camera + projection, for a first prototype 😉
so a first prototype should be possible in ~100locs

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

1 participant