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

Vertical lines disappear at certain camera angles #2493

Open
joric opened this issue Jan 21, 2025 · 1 comment
Open

Vertical lines disappear at certain camera angles #2493

joric opened this issue Jan 21, 2025 · 1 comment

Comments

@joric
Copy link

joric commented Jan 21, 2025

maptalks's version and what browser you use?

maptalks-gl v0.105.4
chrome

Issue description

Vertical lines in GL are flat rectangles, that disappear at certain camera angles (sloped/horizontal lines affected too).
It looks especially bad when there are many lines, the whole map sections disappear.
They should be either line primitives (GL_LINES/GL_LINE_STRIP) or decals facing camera (billboards).

out.mp4

Please provide a reproduction URL (on any jsfiddle like site)

https://joric.github.io/stalker/

@fuzhenn
Copy link
Member

fuzhenn commented Jan 23, 2025

It's a feature in plan called PixelLineStringLayer which will draw lines in screen pixle width.

Currently I'm focusing on webgpu upgrade, I will implement PixelLineStringLayer after the uprade, maybe in april or may (I hope).

And happy chinese new year by the way.

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

No branches or pull requests

3 participants