The First Rule of Program Optimization: Don't do it. Concept 1.3 : Translating Multiple Objects ======================================== Idea: ===== We can use glTranslatef(x, y, z) to translate different object in space. We do this by calling the function just prior to rendering the objects. Experiment ========== We first render a cube without any translation (i.e. render at the orign). The sphere is rendered after translating 3 units along the x direction. Try this: o Change the values of x2, y2, z2 for the sphere. You should see the sphere get rendered at a new position. The cube remains at the origin. o Now change values of x1, y1, z1. The cube occupies a new position. So does the sphere! It seems to have moved along with the cube even though we did not change x2, y2, z2. Why do you think this happened? We will answer this in Concept1d.