Hello everyone.
Im not able to understand how the following is happening:
void Tetrahedron()
{
glClear(GL_COLOR_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glScalef(scale, scale, scale);
Draw_Tetrahedron();
glFlush();
}
void Draw_Tetrahedron()
{
glPushMatrix();
glTranslatef(Tx, 0, 0);
glutWireTetrahedron();
glPopMatrix();
glPushMatrix();
glTranslatef(3.3 * Tx, 0, 0);
glutWireTetrahedron();
glPopMatrix();
}
Now when i continuosly increase “scale” and redraw the tetrahedron,should’nt they overlap? Because im changing the scale factor, so how is that the same translation factor sufficing?
The tetrahedrons are not overlapping.They maintain the same distance between them in whatever way i change the size(i mean scale them).How is this happening?
Should i not give a larger translating factor when the objects are scaled to a larger extent?
Can anyone please explain?
Thanks in advance.