PDA

View Full Version : Interpolating points



dave_1234
01-26-2005, 09:32 AM
I was hoping that someone could explain to me how you can interpolate points to form a smooth line. I think that it can be done as I have seen an example of it in Angel's 'OpenGL: A Primer' but uses glMapGrid1f, but i think that i want to use glEvalCoord1f because i can't guarentee that my points are evenly spaced (is that right?).
I'm hoping that this is possible, as I have a vector of points that i want to join up, but i don't have any control points so Bezier curves aren't really appropriate.

Any help would be much appreciated.

mikael_aronsson
01-26-2005, 11:27 PM
OpenGL does not support any kind of interpolation of points to create a spline/bezier curve.

You need to do that yourself or get a library that supports it.

Mikael