-
Notifications
You must be signed in to change notification settings - Fork 394
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
Rendering issue with curves in p5js #119
Comments
Thanks for posting! Will look into this a bit more when I get a chance. Hard to say what it could be; you can try setting It also looks a little like something to do with canvas2D path rendering getting blown out, like a miter join going to infinity, you could try |
Thanks for these suggestions! I tried these out and discovered that actually, {pixelRatio: 1} in the settings doesn't fix it, but any number above 1 does fix it. It does also cause it to run slower, but I am exporting to mp4 anyway so it is not an issue for me at the moment. |
That's very unusual; it sounds like some sort of floating point issue or browser rendering bug that only happens depending on resolution and coordinate systems. Do you see the same behaviour on other browsers? If you jitter all your points before rendering by some small amount e.g. BTW to fix the slow rendering, you can change it to |
Maybe I'm just blind but that |
The issue is that very tight curves sometimes render with "spiky" bits.
It's happening on the left of this shape in this video:
https://user-images.githubusercontent.com/11337769/113515037-ea4dbd00-9569-11eb-901e-a80d27341797.mp4
I have noticed this happening outside of canvas-sketch before, but only if I am zoomed out on the canvas. When zoomed at 100% and not using canvas-sketch, this does not occur.
However in canvas-sketch it happens all the time, even when zoomed at 100%.
I thought it would be to do with the resizing of the canvas, but it does also occur with the following settings:
Is there perhaps somewhere else the canvas is being resized?
The text was updated successfully, but these errors were encountered: