2d && 3d Interpolation

Started by
6 comments, last by Lord_Vader 17 years ago
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
Advertisement
What type of interpolation?
ie.

Linear
Cosine
Catmull-rom
Beziers
Hi.
Anything except Linear.

lets say
Cosine
Poly
Cubic?

but preferably not too expensive.
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.
Hi.
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.
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.
http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
http://mrl.nyu.edu/~perlin/noise/

Everything is better with Metal.

Thanks,actually I found the original code from Perlin and made it work

This topic is closed to new replies.

Advertisement