View Full Version : 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)?
08-16-2000, 05: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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.