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

Implement more joins and caps #1

Open
mtsr opened this issue May 11, 2021 · 3 comments
Open

Implement more joins and caps #1

mtsr opened this issue May 11, 2021 · 3 comments

Comments

@mtsr
Copy link
Contributor

mtsr commented May 11, 2021

Round join and cap (possible to render in a single draw call per line, instead of two), bevel joins, etc. See https://wwwtyro.net/2019/11/18/instanced-lines.html

@mtsr
Copy link
Contributor Author

mtsr commented May 13, 2021

Round cap can possibly be implemented without any additional vertices using this suggestion by TimD on the GP discord:

btw, do you render extra cap meshes like in the article you linked? in my impl i just extend the billboard a bit in both directions and use the pixel shader to discard/alpha blend pixels to create a rounded end point

See also Gumhold, S. Splatting illuminated ellipsoidswith depth correction (full text not available)
https://www.researchgate.net/publication/220839256_Splatting_Illuminated_Ellipsoids_with_Depth_Correction/citations

or

https://www.researchgate.net/publication/220200701_High-Quality_Cartographic_Roads_on_High-Resolution_DEMs
image

@mtsr
Copy link
Contributor Author

mtsr commented Mar 9, 2022

Miter joins were disabled when polyline was updated to 0.6. This will be done as needed.

@spacekookie
Copy link

Has there been any work on this? Does polyline currently support any caps? Because any 90 degree angles currently look pretty ugly :(

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

2 participants