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

Shared WebGL context #878

Open
superivaj opened this issue Mar 11, 2019 · 2 comments
Open

Shared WebGL context #878

superivaj opened this issue Mar 11, 2019 · 2 comments

Comments

@superivaj
Copy link

@superivaj superivaj commented Mar 11, 2019

maptalks's version and what browser you use?
v0.43.0, chrome

Issue description
Layers do not share WebGL context, which creates glitches when a map has more than one 3d layer. For example a buildings layer with a 3D line will not hide the line behind the buildings.
In particular, I am implementing a 3D terrain layer but this layer will not hide (behind mountains) any other 3d element in the map, such as buildings.

Please provide a reproduction URL (on any jsfiddle like site)
The following example fraws two vector layers. Due to the WebGL context not being shared, the rendering is wrong.
http://jsfiddle.net/h6z5jtky/2/

@fuzhenn
Copy link
Member

@fuzhenn fuzhenn commented Mar 11, 2019

Yeah, indeed.
We are working on a new layer to solve this issue in a decent way.
It should be ready in 1 or 2 months, I will update here once it's ready.

@superivaj
Copy link
Author

@superivaj superivaj commented Mar 11, 2019

Thank you for the quick response fuzhenn.
Is there a branch or discussion thread that I can monitor and contribute to solve this issue?

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.