Results 1 to 2 of 2

Thread: Matrix Tranforms

  1. #1
    Member Newbie
    Join Date
    Feb 2002
    Dallas, TX

    Matrix Tranforms

    Lets say that there are 1000 objects in a scene, all visible, which are translated by a single modelview matrix, which is NOT the identity.

    Do you get anything at all out of doing the math 1 time, by changing the actual geometry, and replacing the modelview matrix with the identity?

    There are no pushing-popping issues here, since it all uses the same matrix.

    What I really want to know is, do graphics cards handle geometry through an identity faster than through another transform? Are they smart enough to not multiply by 1 and add 0 ?


  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2001

    Re: Matrix Tranforms

    I doubt it(and I hope not).Transforming is a simple process:
    (1) get untansformed vertex
    (2) multiply by transforamtion matrices

    adding something like:
    (2a) if the M=I(which needs 16 compares) don't multiply
    just complicates the whole thing w/o getting you anything.The gain you get in the rare cases where M=I you loose in all the other cases where you need 16 comapres.Plus it messes up the code etc.,etc.

    [This message has been edited by zen (edited 06-24-2002).]

Similar Threads

  1. Replies: 0
    Last Post: 09-16-2015, 03:27 PM
  2. Replies: 3
    Last Post: 04-03-2010, 03:10 PM
  3. vertex tranforms for skeletal animation
    By jebus in forum OpenGL: General
    Replies: 4
    Last Post: 05-05-2004, 09:45 AM
  4. Need an advice on separating model matrix from view matrix.
    By Obli in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-09-2003, 06:07 AM
  5. Can concatenate projection matrix with viewport transformation matrix?
    By MelvinEng in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-07-2002, 10:31 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