Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
74 views

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 ...
Breznsoiza's user avatar
1 vote
1 answer
336 views

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 ...
pele's user avatar
  • 21
0 votes
1 answer
581 views

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 ...
Scott Pendleton's user avatar
1 vote
1 answer
392 views

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 ...
Daniel Hakimi's user avatar
4 votes
1 answer
7k views

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 ...
g0dzZz1lla's user avatar
3 votes
1 answer
564 views

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)....
Salim Elheni's user avatar
2 votes
1 answer
251 views

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. ...
PartyPlanet's user avatar
2 votes
0 answers
422 views

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 ...
Daniela's user avatar
  • 179
1 vote
1 answer
1k views

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 ...
Daniela's user avatar
  • 179
1 vote
1 answer
2k views

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....
CyDySy's user avatar
  • 31
11 votes
4 answers
7k views

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 ...
Dan's user avatar
  • 7,904
2 votes
1 answer
2k views

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 ...
Dan's user avatar
  • 7,904
1 vote
2 answers
4k views

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 ...
sands's user avatar
  • 342
1 vote
0 answers
97 views

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, ...
Dualdragoon's user avatar
1 vote
1 answer
2k views

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 ...
Jonathan's user avatar
0 votes
0 answers
1k views

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 ...
Vlox's user avatar
  • 729
0 votes
2 answers
718 views

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 ...
St0fF's user avatar
  • 1,651
7 votes
1 answer
5k views

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 ...
minionhacking's user avatar
2 votes
2 answers
2k views

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[] ...
Mike James Johnson's user avatar
1 vote
0 answers
701 views

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 ...
kalenwatermeyer's user avatar
0 votes
1 answer
2k views

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 ...
Charles Clark's user avatar
15 votes
3 answers
6k views

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 ...
nicholaswmin's user avatar
  • 23.2k
3 votes
0 answers
2k views

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 "...
Marc's user avatar
  • 3,662
13 votes
3 answers
4k views

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 ...
Marc in the box's user avatar
4 votes
1 answer
8k views

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, ...
Marcus Koz's user avatar
0 votes
0 answers
486 views

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 ...
Rahul Verma's user avatar
  • 2,150
0 votes
1 answer
100 views

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 ...
Madmenyo's user avatar
  • 8,584
4 votes
1 answer
2k views

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/...
slyx's user avatar
  • 2,326
4 votes
1 answer
5k views

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 ...
Ooo's user avatar
  • 195
0 votes
2 answers
7k views

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). ...
Bubsy Bobcat's user avatar
1 vote
0 answers
141 views

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 ...
Marine.'s user avatar
  • 11
2 votes
1 answer
3k views

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 ...
Bushes's user avatar
  • 1,010
2 votes
1 answer
3k views

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 ...
Jake's user avatar
  • 2,937
0 votes
1 answer
486 views

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 ...
Robban's user avatar
  • 1,221
0 votes
1 answer
1k views

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 ...
Marnix's user avatar
  • 6,587
47 votes
5 answers
35k views

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) { ...
Øyvind's user avatar
  • 859
5 votes
2 answers
6k views

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 ...
McFarlane's user avatar
  • 1,877
3 votes
2 answers
3k views

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 ...
jepessen's user avatar
4 votes
1 answer
711 views

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 ...
calamity's user avatar
2 votes
0 answers
4k views

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 ...
Nick's user avatar
  • 8,317