Results 1 to 3 of 3

Thread: How a matrix transforms a point?

  1. #1
    Member Contributor
    Join Date
    May 2008
    Posts
    67

    How a matrix transforms a point?

    My modelview matrix is currently:

    1 0 0 0
    0 cos45 -sin45 0
    0 sin45 cos45 0
    0 0 0 0

    Now I call glTranslate(0,2,0) and multiply the above matrix with the below one.

    1000
    0101
    0010
    0001

    I can figure out the first 3x3 block which is just

    1 0 0
    0 cos45 -sin45 0
    0 sin45 cos45 0

    But how do I figure out the right most column ( the translation values)

  2. #2
    Senior Member Regular Contributor trinitrotoluene's Avatar
    Join Date
    Sep 2008
    Location
    Montérégie,Québec
    Posts
    362

    Re: How a matrix transforms a point?

    It seem you have posted the question twice. the answer is in this thread

  3. #3
    Member Contributor
    Join Date
    May 2008
    Posts
    67

    Re: How a matrix transforms a point?

    whoops this was supposed to be a different question, which I have now posted in the other thread.

    Cheers.

Similar Threads

  1. Skip to the matrix at a point
    By imported_Pierre in forum OpenGL: Advanced Coding
    Replies: 21
    Last Post: 02-08-2010, 05:24 AM
  2. From matrix to Point
    By NekoChan in forum OpenGL: General
    Replies: 6
    Last Post: 07-20-2008, 01:59 AM
  3. point sprites and texture matrix
    By mach5mach in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-26-2008, 02:38 PM
  4. Help with matrix and point coordinates
    By Alessandro_dup1 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-26-2005, 11:06 PM
  5. How to multiply point by Current Matrix?
    By GameMaker in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-24-2001, 03:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean