Registered Member
|
Hi you all,
I'm wondering how to map the content of GL_MODELVIEW_MATRIX correctly to an Eigen::Affine3d transformation. I know that both have column-order storage order, but I don't know how to pick the current GL_MODELVIEW_MATRIX and write a deep copy to Affine3d.
should do the trick but data() is a const member function, so it's not possibile to write onto, and obviously this is not a deep copy. |
Moderator
|
oh, there is no non const version of .data() in Transform<>, you can workaround using:
M.matrix().data() |
Registered Member
|
I'm I ensured that by using transform.matrix.data() the storage order is the same?
|
Moderator
|
yes, it is column major like OpenGL.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]