×Video encoding is running slowly right now. You can keep uploading, but it may be awhile before it converts. We apologize for the inconvenience!
More
See all Show me
35. Reincarnation
9 months ago
34. MSAShape3D Demo
9 months ago
30. Gold demo
1 year ago
24. ofxMSASpline - openFrameworks addon to interpolate…
1 year ago
19. Roots demo 2
1 year ago
A set of C++ template classes for doing various types of interpolations on data with any number of dimensions. You can feed the system an arbitrary number of data (data can be simple types like float, int or complex types like structs, classes), then resample at any resolution, or ask for the value at any percentage along the data - or just draw it - including splines in 3D. This is useful for creating and drawing splines (in any dimensions), or creating smooth animation paths from keyframes (again, in any dimensions).

memo.tv/ofxmsaspline

Credits

9 Likes

  • toni 1 year ago
    it may be a newbie question but, when resampling a whole set of data points, let's take A and B among them, how do you determine the sample period, as the inverse of the sampling frequency? But then again, how do you make these samples match the exact location of the datapoints you set with the mouse? Or do you just resample each segment(between two white datapoints) independently? Also, if you do that - independently-, isn't the last sample on each segment further from the next datapoint than from the previous sample point(red)?
    i'm just curious about your technique!
    sorry for all the text here : D
    merci!

    btw i think your magnetic force fields is simply wonderful
  •  
  • Memo Akten plus 1 year ago
    Thanks Toni. I've added the link to the download / source / documentation.

    I created a method Spline::sampleAt(float f) which returns the interpolated value at point f (0...1) percentage along the dataset. This can be physical distance or percentage of given sample points. E.g. sampleAt(0.25) can mean 'give me the value at one quarter along the spline' OR 'give me the value at one quarter of the nodes along the spline).

    So e.g. the following code will resample the value at 100 points along the dataset:
    for(float f=0; f (LE) 1; f+=0.01) {value = mySpline.sampleAt(f); }

    I've implemented two interpolation types: linear and catmull-rom (cubic). So the idea is to be able to calculate a value at any point along the data by fitting a mathematical curve that goes through all the points. Hope that is a bit clearer.
  • toni 1 year ago
    thanks Memo, now i clearly the way you do it, also appreciate the source : D
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

1 Related collections

Channels Channels

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 1,430
    likes 9
    comments 3
  • Nov 10th
    plays 2
    likes 0
    comments 0
  • Nov 9th
    plays 5
    likes 0
    comments 0
  • Nov 8th
    plays 3
    likes 0
    comments 0
  • Nov 7th
    plays 2
    likes 0
    comments 0
  • Nov 6th
    plays 4
    likes 0
    comments 0
  • Nov 5th
    plays 2
    likes 0
    comments 0
  • Nov 4th
    plays 2
    likes 0
    comments 0
  • Nov 3rd
    plays 3
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.