-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
sf::ConvexShape
outline glitching when shape is too small
#2727
Comments
sf::ConvexShape
outline glitching when shape is too small
As the internal angle approaches zero, I'd actually expect the outline's corner point to move very far from the shape. To fix this we'd have to do something like support rounded edges on outlines. |
I guess it's mathematically correct, but maybe there's a visual limit we can set for very small angles |
This brings to mind SVG stroke-miterlimit attribute. See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit |
I like this behavior. I'd support this feature. I'm unsure how hard it will be to implement though. |
Not very hard. I could give it a try next weekend. |
Subject of the issue
I've tried to render some simple 3D rotating cube using triangles.
Triangles were implemented with
sf::ConvexShape
. When i addedsf::ConvexShape.setOutlineColor
. I noticed graphical glitch that occurs when the side of a cube becomes too small when rotated. I will add video to be clear.Your environment
Steps to reproduce
2023-10-08.18-41-17.mp4
The text was updated successfully, but these errors were encountered: