Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Need some clarification on transformation matrices

  1. #11
    Junior Member Newbie
    Join Date
    Dec 2012
    Posts
    18
    Hi Dark Photon, thank you very much again for commenting on my post. I know as a newbie, my question my be too simple to ask. We don't need to consider opencv. Let us consider the two coordinate systems as found in the image attached.

    Click image for larger version. 

Name:	model_matrix.jpg 
Views:	24 
Size:	6.3 KB 
ID:	1352

    I think the first step i.e. ( [M'] = [M]*[U]) converts any object in coordinate system (a) so that it looks with similar orientation in coordinate system (b).

    Next step ([M''] = [U]*[M']) did conversion so that it matches the coordinate system (b) i.e. opengl coordinate system.

    I tried on some simple model and it works. But would be happy to hear further justification from you.

    Please help with further comments or suggestions.

  2. #12
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,209
    I'm sorry. I don't understand your question.

  3. #13
    Junior Member Newbie
    Join Date
    Dec 2012
    Posts
    18
    Sorry for the confusion. Let me try to explain again. Suppose I have a rotation matrix in coordinate system (a). I would like to see it in coordinate system (b) but with same orientation as shown in (a). The first step ( [M'] = [M]*[U]) does this. Am I right?

  4. #14
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,209
    If I understand your question correctly, yes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •