Login  Register

Re: glut primitive object scaling

Posted by Wade Walker on Mar 18, 2011; 3:56pm
URL: https://forum.jogamp.org/glut-primitive-object-scaling-tp2698207p2698437.html

Yes. When you scale, you're just multiplying the coordinates by the scaling factor. So for the z coordinate of the base, you're doing Znew = Zold * scale = 0 * scale = 0  For the other end it works fine, because Znew = Zold * scale = height * scale.