Questions tagged [beziers]
Parametric smooth curves and surfaces in computer graphics. Bezier curves and surfaces have control points that are used to control their shape. They are frequently used in software for automotive and industrial design.
59
questions
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 ...
3
votes
2
answers
4k
views
How to remove bezier handle in 3dsmax?
While editing spline, I need to make one of the vertexes to be an absolute corner. I.e. bezier control points should be in zero distance from the vertex.
How to do that?
5
votes
1
answer
4k
views
How to implement curved movement while tracking the appropriate angle?
I'm currently coding a 2D top-down car game which will be turn-based. And since it's turn-based, the cars won't be controlled directly (i.e. with a simple velocity vector that adjusts its angle when ...
12
votes
3
answers
12k
views
Collision detection with curves
I'm working on a 2D game in which I would like to do collision detection between a moving circle and some kind of static curves (maybe Bezier curves).
Currently my game features only straight lines ...
2
votes
3
answers
2k
views
Tessellating to a curve?
I'm creating a game engine, and I'm trying to define a 3D model format I want to use. I haven't come across a format that quite does what I want.
My game engine assumes a shader model 5+ environment. ...
2
votes
2
answers
2k
views
Implementing a sine using a bezier curve
I'm developing a 2D game using Cocos2d-x.
Is possible to use CCBezierTo to parameterize a sine function?
3
votes
1
answer
2k
views
Linear movement over a Bézier curve
Is it possible to get a constant speed movement over a Bézier curve when its points are not kept symmetrical ?
Here white square (almost) moves at constant speed.
(red and green squares are control ...
1
vote
1
answer
2k
views
How to generate closed curve?
How can I do that? I can generate simple beziers, but how can I generate a closed curve like this:
http://www.youtube.com/watch?feature=endscreen&NR=1&v=hlDYJNEiYvU
3
votes
2
answers
778
views
Bezier Curves for visual programming node connectors
Probably everyone is familiar with all kinds of visual node based programming tools like HLSL editor in Visual Studio 2011 or UDK engine Kismet/Material editors. My point of interest are the ...
6
votes
2
answers
322
views
How do you calculate if a line is facing a curve?
Given the 2 points describing a line segment, and the 3 points describing a quadratic bezier curve, how do you calculate if the line is facing towards or away from the curve?
The line has a fixed ...
15
votes
4
answers
1k
views
How do you calculate the nearest point on 2 curves?
Given the points of a line and a quadratic bezier curve, how do you calculate their nearest point? .... Similarly, given the points of 2 curves, how do you get the nearest point?
10
votes
2
answers
389
views
How do you calculate if 2 lines are facing toward or away?
Given the 4 points describing 2 line segments, how do you calculate if line A is towards or away from line B?
The 2 lines have a fixed length, and can be measured as distance from x1/y1 to x2/y2.
27
votes
4
answers
29k
views
Bezier curve arc length
See also: same question on Math.SE
How can I find the arclength of a Bezier curve? For example, a linear Bezier curve has the length:
...