I’m making a program to plot functions using surfaces: i’ve got an array with points and have to create a surface using them. I’ve heard about an algorithm called “painter algorithm” or similar.
Anybody knows how to implement this “painter algorithm”?
Is there any OpenGL function or code to create a surface from a given set of points?
Here is an example program i’ve currently written. It draws a 3d surface from a math function with 3 arguments - f(x, z, t). Play with it - just change the function and see how the surface changes! It’s really funny!