ok, let’s say i have a point that is at the 4,10,6 position on the current matrix (untrasformed). This is the center of my cube.
- Do glRotated
- some glTranslated
- other few glRotated
Now the cube is transformed, and my old matrix is restored.
if i want to draw a point, in the center of the transformed cube, with the untransformed matrix (the poped one), how can i do that? eheh I need to know where the vertex is at in the untransformed matrix. Is there any formula? Maybe i can calcul my vertex with each tranformation and use it after?
I don’t really know… so help will be gradly apreciated.