Results 1 to 3 of 3

Thread: Internal matrix representation

  1. #1
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    234

    Internal matrix representation

    Hello!

    I am reading "Essential Mathematics for Games & Interactive Applications" by Van Verth and Bishop, where authors say :
    'And even in OpenGL, despite the fact that the documentation is written using column vectors, the internal representation premultiplies the vectors; that is, it expects row vectors as well.'

    Ok, I understand that matrices in OGL are stored in column major order to pretranspose a matrix in the storage representation. But still - in OpenGL one always combines transformations in the opposite order, so how is it possible, that 'internal representation premultiplies the vectors'?

    I would be thankful for making this one clear for me.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Internal matrix representation

    I'm not sure but I guess you misunderstood what you read. I think what the authors said is that:

    normal maths for matrix are row major and vectors are column-vectors. And despite of the fact that the documentation of the book uses column vectors, you should use row vectors, that is, an aligned segment of memory. So when you use an array of vectors, all data are simply aligned.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    234

    Re: Internal matrix representation

    Yes, it is all right what you say. Anyway, I think that 'premultiplies' used by authors is a really misleading word. In my opinion it suggests left -> right matrices concatenation, while this quote concerns memory alignment only.

    Thanks

Similar Threads

  1. glUniform: Matrix representation
    By GreenOwl in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-14-2013, 10:25 AM
  2. vendor specific internal texture representation
    By Chris Lux in forum OpenGL: Drivers
    Replies: 0
    Last Post: 09-13-2010, 07:37 AM
  3. Matrix representation
    By Erakis in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-13-2005, 05:43 PM
  4. Internal data representation in OpenGl
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-06-2004, 05:20 AM
  5. float and double internal representation
    By imported_T2k in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-30-2001, 01:43 PM

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