All Questions
3
questions
3
votes
0
answers
456
views
How to fix problem in serpentine case using Blinn/Loop algorithm
I'm trying to implement Blinn/Loop algorithm to render cubic bezier on shader. I calculate the curve type using code below (v0, v1, v2, v3 are cubic bezier segment):
...
2
votes
2
answers
1k
views
Bezier curve not drawn correctly
I'm trying to draw a bezier curve using 3 points. If I use the quadratic form:
I get this result:
And I believe it's correct.
Now since I need to draw it with a variable number of points, I'm ...
3
votes
1
answer
2k
views
How do I render a filled and stroked path using OpenGL?
I want to render a 2-dimensional geometric path consisting of Bézier curves and straight lines. Paths can be concave.
What is the most efficient way to draw this using modern OpenGL? Can I do this ...