Questions tagged [catmull-rom-curve]

38 questions
0
votes
0 answers

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 where it measures the... for lack of a better way to…
Vlox
  • 717
  • 8
  • 18
0
votes
2 answers

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 to be dy/dx = 0. Now the result of rendering two…
St0fF
  • 1,553
  • 12
  • 22
0
votes
1 answer

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 me, and I was unable to track down any errors in…
Charles Clark
  • 153
  • 1
  • 2
  • 8
0
votes
0 answers

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 the following algorithm Take the end top point…
Rahul Verma
  • 2,140
  • 3
  • 21
  • 31
0
votes
1 answer

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 Boolean with the constructor. This seems to be…
Madmenyo
  • 8,389
  • 7
  • 52
  • 99
0
votes
2 answers

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). The app is working just fine for closed contours,…
Bubsy Bobcat
  • 41
  • 2
  • 5
0
votes
1 answer

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 Catmull-Rom probably is the algorithm to…
Robban
  • 1,191
  • 2
  • 13
  • 25
0
votes
1 answer

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 information out of a publication and they use Beziér…
Marnix
  • 6,384
  • 4
  • 43
  • 78
1 2
3