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.

learn more… | top users | synonyms

2
votes
2answers
54 views

Points evenly spaced along a bezier curve

I have looked around for a while and I can't find a solution to this problem. Let's say I have a cubic bezier curve (defined by 4 points) and I want to get a set of points that are spaced evenly along ...
1
vote
1answer
84 views

GPU friendly bezier storage/evaluation?

Let's say that you want to do bezier curve or surface evaluation on the GPU (fragment shader, geometry shader, compute shader, OpenCL, etc). Does anyone know of any interesting tricks of techniques ...
1
vote
1answer
76 views

Turn the front wheels of a car according to the car's bezier path

I have a 3D car which follows a predefined 3D Bezier path. I want the car's front wheels' rotation to match the car's changing direction. I had the idea to match the wheel's orientation to the ...
0
votes
1answer
339 views

Switching bezierpath to follow SpriteKit swift

I am trying to make it so that a SKShapeNode follows a UIBezierPath. Then when the screen is tapped it switches to another UIBezierPath to follow. I have this functionality working except that when ...
0
votes
1answer
188 views

Controlling roll rotation when travelling along bezier curves [Unity3D]

I am currently working on implementing a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant ...
0
votes
0answers
216 views

Adding smooth round Bézier curve corners in unreal editor?

Unreal Editor offers rectangular and round geometry. It also offers boolean operations. I can make a smooth corner by playing around with cylinder and boolean operations. I really would like to make a ...
1
vote
0answers
97 views

Cubic bezier polygon clipping

I have a large cubic bezier defined 2D polygon area which I need to render in DX11 real-time to create as many 4096x4096 textures as needed. An average control point count would be around the 12k and ...
5
votes
2answers
516 views

How can I find the right UV coordinates for interpolating a bezier curve?

I'll let this picture do the talking. I'm trying to create a mesh from a bezier curve and then add a texture to it. The problem here is that the interpolation points along the curve do not increase ...
1
vote
0answers
110 views

What's the equivalent of UIBezierPath in Cocos2d-x?

I'm beginner in Cocos2d-x , and i want to implement this tutorial with Cocos2d-x v.3 cpp, but the problem i dont know if there's UIBezierPath in cocos2d-x. Could you help me to draw the Bezier Arrow ...
4
votes
1answer
297 views

Cubic bezier for easing?

I would like to find out what Y is if X is a certain number from a cubic bezier curve to make a custom easing function, like it's done on this site: http://cubic-bezier.com/ Does anyone know a formula ...
0
votes
0answers
105 views

Precalculating timespan of bullet collision on cubic bezier curve circles?

I'm fairly new to game logics, C#/XNA (The language/library of choice) and bezier curves in general, and is stuck in my current project. I'm going to try to explain as thoroughly as I can what the ...
1
vote
0answers
186 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): CurveType ...
0
votes
1answer
511 views

Rotating object along bezier curve: not rotating enough?

I tried to follow the instructions from the threads on the forum (Cocos2d rotating sprite while moving with CCBezierBy) with Unity, in order to rotate my object as it moves along a bezier curve. But ...
3
votes
3answers
1k views

What is the simplest way to export a bezier curve created in Blender to a text file?

I have created a bezier curve in Blender. I'd like to export this curve to a text file. What I need is : Control point + handles, three points in total. Example : {{ 2.3333,4.3942, 55.333 }, { ...
1
vote
2answers
1k views

How to make a gui button follow a path after a touch?

I would like a button in my gui menu to follow a specific path if we selected it, I am wondering how I could do it: if we touch the button, then it can only move on the specific path, it is an arc ...
2
votes
2answers
876 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, ...
3
votes
1answer
699 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
2answers
2k 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
1answer
2k 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 ...
9
votes
3answers
4k 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
3answers
534 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
2answers
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
1answer
790 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
1answer
590 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
2answers
431 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
2answers
220 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 ...
14
votes
4answers
667 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?
9
votes
2answers
327 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.
16
votes
2answers
2k views

Bezier curve arc length

How can I find the distance traveled by a Bezier curve? For example, the distance traveled by a Linear Bezier Curve is: distance = sqrt(pow(x[1] - x[0], 2) + pow(y[1] - y[0], 2)); But what about ...