# 2d && 3d Interpolation

This topic is 4109 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello guys. I am looking for any possible 2d and 3d interpolation method. I have done some search but I havent found anything good enough(with analysis of the method) except 1d interpolation which is abundant. I would like if possible some links that describe any of those methods(especially 3d interpolation). Thanks

##### Share on other sites
What type of interpolation?
ie.

Linear
Cosine
Catmull-rom
Beziers

##### Share on other sites
Anything except Linear.

lets say
Cosine
Poly
Cubic?

but preferably not too expensive.

##### Share on other sites
For cameras and enemy movements the coolest onethat I've had a chance to use so far is Catmull-rom splines.

Q = 0.5 * ((2*P1) + (P2 -P0)*t + (2*P0 - 5*P1 + 4*P2 - P3)*t2 + (-P0 + 3*P1- 3*P2 + P3)*t3)

Pn are the control points
Q is the intepolated value
t = value from 0 to 1 (0 = start, 1 end)
t2 = t * t
t3 = t * t * t

The beauty of this is that the spline passes though all the control points if you want to loop it.

##### Share on other sites
A 2D or 3D interpolation of a curve is just 2 or 3 1 demensional interpolations where each 1 demensional curve represents the position in one axis with respect to the parameter. Unless you are referring to interpolations of surfaces or spaces rather than curves which is something completely different.

##### Share on other sites
Quote:
 Unless you are referring to interpolations of surfaces or spaces rather than curves which is something completely different.

I am referring to interpolations of surfaces ans spaces.

I want to create 3d perlin noise.

##### Share on other sites
http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
http://mrl.nyu.edu/~perlin/noise/

##### Share on other sites
Thanks,actually I found the original code from Perlin and made it work

• 48
• 12
• 10
• 10
• 9
• ### Forum Statistics

• Total Topics
631380
• Total Posts
2999673
×