Non linear scaling

Is it possible in OpenGl to scale by a nonlinear factor. For example, I want to transform the z-axis into a (z^2)-axis. glScale and glMultMatrix don’t seem up to the job. Does anyway know of a way of doing this?


Afraid this is not possible with standard OpenGL-calls. You must do it on your own. But hey, why don’t you just call it like this then: glVertex3f(x,y,z*z)?

I think the reason that openGL doesn’t support this nativly is that it would require a 5x5 maxtrix instead of the 4x4. So to do it efficently and generically would require some thought.