PDA

View Full Version : Non linear scaling



ai06
08-16-2000, 02:39 AM
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?

Thanks

Bob
08-16-2000, 05:48 AM
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)?

ribblem
08-16-2000, 06:49 AM
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.