While programming in OpenGL, I’ve come across the problem of actually locating specific coordinates after translations have been done.
Is there any easy way to access these vertex coordinates after all transformations are processed? i.e. my alternative is to multiply all the transformation matrices and the vertex, but i’d like to know if there’s any faster and/or easier way to access these coordinates.
If you start transforming your model from the world origin, when it is fully transfomed you can call:
The matrix (transformMatrix) now holds the transformation that took the model from the world origin to its current position. By multiplying this matrix times any vertex in your model, you transform the vertex into world coordinates.