Questions tagged [catmull-rom-curve]
38 questions
2
votes
0 answers
Convert a degree 3 cubic Nurbs Curve to Catmull-Rom?
Is there a way to convert a degree 3 cubic Nurbs curve to a Catmull-Rom curve?
The Nurbs curve has a standard knot vector, so for example a curve with 10 control points has these 12 knots:
[ 0 0 0 1 2 3 4 5 6 7 7 7 ]
I assume the resulting…

Daniela
- 169
- 2
- 5
2
votes
1 answer
Adding alpha to Catmull-Rom
I am trying to generate a Catmull-Rom curve from a list of points in Unity. As I do not want to store points in between points of the curve I opted to use a solution that could calculate a position in a Catmull-Rom curve based on time. There are a…

Dan
- 7,286
- 6
- 49
- 114
2
votes
2 answers
Catmull Rom Spline implementation (LibGDX)
I want to generate a random spline across my screen.
Here is what I have so far:
public class CurvedPath {
Random rn;
CatmullRomSpline curve;
float[] xPts;
float[] yPts;
Vector2[] points;
public CurvedPath(){
points = new…

Mike James Johnson
- 724
- 2
- 8
- 29
2
votes
0 answers
Drawing a CatmullRomSpline in libgdx with an endpoint and startpoint
So my goal is to draw a spline similar to this one (where the line goes through each point):
But the spline loops around (from the end point 2 back to the start point):
I tried changing the "continuous" boolean in the catmullromspline, but that…

Marc Guiselin
- 3,442
- 2
- 25
- 37
2
votes
1 answer
XNA CatmullRom Curves
I'm in need of some clarification over a technique I'm trying. I'm trying to move an entity from point A to point B, but I don't want the entity to travel in a straight line.
For example if the entity is positioned at x: 0, y:0 and I want to get to…

Bushes
- 1,010
- 1
- 18
- 37
2
votes
1 answer
Keyframe interpolation catmull rom
I understand there are many methods to do this. I am specifically interested in the catmull romfor animation purposes. I am having trouble understanding it however. All the sites I have visited have identified key poses as points. However key…

Jake
- 2,877
- 8
- 43
- 62
1
vote
1 answer
Centripetal Catmull-Rom spline interpolation alpha parameter
After searching almost every topic on Catmull-Rom splines and finally implementing it successfully I'm now stuck at a point where I don't know if I made a logical mistake or if my code is simply wrong.
My problem is, that my code won't accept the…

CyDySy
- 21
- 6
1
vote
2 answers
How Can I Convert a THREE.CatmullRomCurve3 to a Mesh?
I have created a line graph in 3D using THREE.js and the CatmullRomCurve3 class, which takes care of the curves and smoothing I wanted.
Unfortunately, now that I want to take that curve and turn it into a mesh, and perhaps extrude that mesh, it…

sands
- 342
- 3
- 9
1
vote
0 answers
moving a curve by inverse slope of each point without overlap
I am trying to draw curves a specified distance away from a curve. Kind of like the sides of roads are always a set distance away from the yellow lines in the center. I have code to do this, however, when done using my code it ends up with overlap…

Dualdragoon
- 11
- 2
1
vote
1 answer
I need help on drawing a Catmull-Rom spline using given control points
I'm trying to create an openGL program that allows the user to click anywhere on the window, creating a point in that exact cursor coordinate for every click, and then draw a curve through those points. I did manage to implement that part, and draw…

Jonathan
- 55
- 8
1
vote
0 answers
libgdx: Calculate points along CatmullRomSpline that are same distance apart?
I am building a 3D game in which the camera follows a sequence of predefined paths (which are imported from curves drawn in Blender).
At load time, I extract the Blender curve points and use these to create path splines using the CatmullRomSpline…

kalenwatermeyer
- 741
- 12
- 24
1
vote
0 answers
Moving sprite on a predefined path using ccTouchesMoved
I am trying to move the sprite on the path which I define for, by Moving the touch. But I am unable to exact same as the CCCatmullRomBy Action which is predefined in cocos2D. Please suggest me how would I do it.
For more understanding lets assume a…

Marine.
- 11
- 2
0
votes
1 answer
How to connect two points with a tube in threejs?
Using Threejs, I want to create a tube between two points that have x, y, z coordinates. I don't want to rely on some equation to generate points for a fancy curve. This documentation confuses me. I have scoured the Web for examples; no luck. I have…

Scott Pendleton
- 1,021
- 3
- 16
- 32
0
votes
1 answer
How do you animate between two different lists of CatmullRomSpline points?
I've been playing around with the CatmullRomSpline class from Flutter the past few days. Drawing points with is trivial, however, I've been looking for information on interpolating between two sets of values and haven't had much luck.
to give a…

Daniel Hakimi
- 1,153
- 9
- 16
0
votes
1 answer
Algorithm to cut a catmull-rom spline?
I have a catmull-rom spline with 6 CVs and want to cut it at an arbitrary point along the spline.
How do I calculate the end points of the two new splines so that they keep the shape as they had before they were cut in two?
So, imagine this being…

Daniela
- 169
- 2
- 5