40 questions
-3
votes
1
answer
74
views
CatmullRomCurve3 does tiny swing in opposite direction before facing coordinate
I'm using THREE.CatmullRomCurve3 to create a smooth path for a car curve animation in Three.js.
I want the curve to look kind of like an "S" shape, but not too steep.
Here are the curve ...
1
vote
1
answer
336
views
Catmull-Rom spline for Data visualization
So I am doing a project wehere we use the Convex hull to group the points and Catmull-Rom spline to make it more round like shown on the picture:
Now i got the next task which is to connect the paths ...
0
votes
1
answer
581
views
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 ...
1
vote
1
answer
392
views
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 ...
4
votes
1
answer
7k
views
How do I find the control points for a Bezier curve?
I need to implement connections in the form of curved lines in C# (Unity). I would like to get the result as similar as possible to the implementation in Miro.com (see screenshot).
After attaching the ...
3
votes
1
answer
564
views
Spline Catmull-Rom for image zooming using C++ and opencv
I'm trying to implement spline Catmull-Rom for image zooming using C++ and OpenCV.
I performed two tests, the first is image zooming (X2), and the second image reconstruction (zooming image decimated)....
2
votes
1
answer
251
views
Problems when using same coordinate twice in a Catmull-Rom Spline
I'm currently messing around with Catmull-Rom splines, and have found a problem that I'm not sure how to solve. So when I use a method to do the Catmull stuff, I have to give an ArrayList of 4 points. ...
2
votes
0
answers
422
views
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 ...
1
vote
1
answer
1k
views
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 ...
1
vote
1
answer
2k
views
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....
11
votes
4
answers
7k
views
Acceleration in Unity
I am trying to emulate acceleration and deceleration in Unity.
I have written to code to generate a track in Unity and place an object at a specific location on the track based on time. The result ...
2
votes
1
answer
2k
views
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 ...
1
vote
2
answers
4k
views
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 ...
1
vote
0
answers
97
views
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, ...
1
vote
1
answer
2k
views
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 ...
0
votes
0
answers
1k
views
Interpolating Specific Point Using Centripedal Catmull-Rom Spline
I have been investigating Catmull-Rom (CR) splines for interpolating curves and like my results so far, though I am having a fatal issue: Essentially, I am unable to map the "t" (say 0<=t<=1 ...
0
votes
2
answers
718
views
1D Hermite Cubic Splines with tangents of zero - how to make it look smoother
I am given 3 values y0, y1, y2. They are supposed to be evenly spaced, say x0 = -0.5, x1 = 0.5, x2 = 1.5. And to be able to draw a spline through all of them, the derivatives at all points are said ...
7
votes
1
answer
5k
views
How do Catmull-Rom and Hermite splines relate?
I'm a little confused as to how they relate. From my class, my professor asked how to fit C1 continuous piecewise Hermite curves to x amount of points with automatically computed tangents. Can someone ...
2
votes
2
answers
2k
views
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<Vector2> curve;
float[] xPts;
float[] yPts;
Vector2[] ...
1
vote
0
answers
701
views
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 ...
0
votes
1
answer
2k
views
Chordal Catmull-Rom Splines
I've been working on getting Catmull-Rom splines working for a side project and am having difficulty getting it to do what I need. I tried the following two implementations and both didn't work for ...
15
votes
3
answers
6k
views
Catmull-Rom interpolation on SVG Paths
We're experimenting with creating high-performance, good-looking pencil tools using SVG paths.
We log the mouse coordinates to draw a path. To get a high-fidelity path (accurate to the user's ...
3
votes
0
answers
2k
views
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 "...
13
votes
3
answers
4k
views
Calculate a 2D spline curve in R
I'm trying to calculate a Bezier-like spline curve that passes through a sequence of x-y coordinates. An example would be like the following output from the cscvn function in Matlab (example link):
I ...
4
votes
1
answer
8k
views
How to update Unity GameObject to move along Spline Curve?
Good afternoon,
I am attempting to implement a GameObject in Unity that moves along a Cubic CatMull-Rom Spline given 8 constrained random values. I have implemented a function, ...
0
votes
0
answers
486
views
Minimum number of control points in CatmulRomSpline libgdx
I am using the CatmullRomSpline class of libgdx for creating a smooth curve passing through three points. Basically I want to place coins between two platforms in a curved path. For that I followed ...
0
votes
1
answer
100
views
CatmullRomSpline does not accept type arguement
I am looking to create smooth paths for my 2D game. Looking at CatmullRomSpline it is just the thing i need. Every post, even here on SE is giving it a type and passing all the control points and a ...
4
votes
1
answer
2k
views
How performing fast Catmull-Rom texture tiltering by linear interpolations?
I've read some articles which introduce fast third-order interpolation using GL_LINEAR.
[1] http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter20.html
[2] http://0xef.wordpress.com/2013/01/12/...
4
votes
1
answer
5k
views
CatmullRomSplines and other smooth paths
I've been looking into getting an object on a two dimensional plane to follow a smooth curve defined by several control points.From what I've found, I'm looking for a Catmull-Rom-Spline.
I've been ...
0
votes
2
answers
7k
views
Cubic Spline : Start/End Segment interpolation
I'm doing Spline interpolation in C++. I've used code from here: http://tehc0dez.blogspot.ch/2010/04/nice-curves-catmullrom-spline-in-c.html (the code is also linked on that page, it's up on github). ...
1
vote
0
answers
141
views
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 ...
2
votes
1
answer
3k
views
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 ...
2
votes
1
answer
3k
views
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 ...
0
votes
1
answer
486
views
Catmull-Rom interpolation in Ruby
I have a list of points that I want to draw a smooth line between. I am using the RVG library for drawing so if i could get a SVG string from my points I would be happy. Searched around and found that ...
0
votes
1
answer
1k
views
Convert Beziér control points to Catmull-Rom control points
I am doing some smooth camera transitions in 3D and use a small library that handles the transition of my camera.
Unfortunately, it only performs Catmull-Rom transitions. I am also using some ...
47
votes
5
answers
35k
views
Catmull-rom curve with no cusps and no self-intersections
I have the following code to calculate points between four control points to generate a catmull-rom curve:
CGPoint interpolatedPosition(CGPoint p0, CGPoint p1, CGPoint p2, CGPoint p3, float t)
{
...
5
votes
2
answers
6k
views
smooth svg path connection
I have a random set of points and want to create a smooth svg shape with raphaeljs.
To connect the points I am using a catmull-rom-spline. The problem is that the point where the path is closed is not ...
3
votes
2
answers
3k
views
cubic interpolation with not equidistant points
I'm trying to create an interpolation of a list of points.
I've some point of coordinates (ti, xi), where ti are timestamp and xi are associated values. I want to create a function that passes ...
4
votes
1
answer
711
views
Compute a point on a spline surface
I am working on a control algorithm to be run on an embedded system. My programming language is C and the system will be pretty tightly constrained in terms of memory and processing power.
I have a ...
2
votes
0
answers
4k
views
catmull-rom splines for Android
I'm trying to find a way to implement catmull-rom splines on the android platform for the purpose of smoothly drawing a line through n points. Ideally I would be able to adapt cubic beziers via the ...