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

Polyline texture coordinate chunkiness #7689

Open
emackey opened this issue Mar 29, 2019 · 2 comments
Open

Polyline texture coordinate chunkiness #7689

emackey opened this issue Mar 29, 2019 · 2 comments

Comments

@emackey
Copy link
Contributor

emackey commented Mar 29, 2019

Polylines have texture coordinates that indicate to the shader where a given pixel is along the width of the line, and along the length of the line. The width positioning seems quite stable, but the length position somehow is quantized into chunks, or rounded in some way. It appears to update only at intervals, even when the line grows every frame.

I've made a demo that shows how this affects the arrow material, but I also have cases where this affects other materials too. I think it's an issue with the way the texture coordinates are calculated.

GrowingPolylines

What we're supposed to see in this demo is some growing arrow lines, with circled arrow heads (the circles come from large point outlines). You can see that the circles (points) travel smoothly, as expected, and the polyline grows smoothly, but the arrowheads are not smooth.

@emackey
Copy link
Contributor Author

emackey commented Mar 29, 2019

Here's a modified demo that uses the hexadecimal digits (0123456789abcdef) as an image texture, so that texture placement is more visually apparent. The last letter and a half (ef) of the texture get repeatedly squished and expanded in this demo.

GrowingDigits2

@emackey
Copy link
Contributor Author

emackey commented Mar 29, 2019

Also this happens at both ends.

GrowingDigits5

I would expect this demo to look more like an aircraft smoothly pulling an advertisement banner across the sky. Parts of the banner should not be repeatedly crushed in the process.

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

1 participant