Results 1 to 2 of 2

Thread: OpenGL matrix primer?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011

    OpenGL matrix primer?

    I'm pretty handy with matrix math, and I'm trying to create a hardware accelerated... thingy, called an Iterated Function System. Basically you take a square and copy it and transform it, and repeat that over and over again.

    The thing I'm having trouble with is figuring out how to transform everything right, and how to handle OpenGL matrices. The transformation consists of skew, scale, translation, and rotation in two dimensions... but I'm not really sure how to create the matrices (skew matrix especially - I know what's inside of it, just not how to get it into an OpenGL matrix). there a good tutorial anywhere that explains all the ways to handle OpenGL matrices?

    To clarify: If you asked me to I could write the contents of the matrix out by hand. I'm alright with linear transformations... though while programming I get confused where the matrix is being applied.

    and the final result I would like would be a 2d affine transformation on a square centered at the origin. 4th row and 4th column would just be [0, 0, 0, 1]

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004

    Re: OpenGL matrix primer?

    The OpenGL Programming Guide has a good description, IIRC. Here is another:

Similar Threads

  1. Replies: 0
    Last Post: 09-16-2015, 03:27 PM
  2. OpenGL: A Primer (2002) pg 150
    By wmspringer in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-12-2004, 07:51 AM
  3. OpenGL and GLUT primer (a little bit frustrated)
    By emres in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-10-2002, 04:35 AM
  4. Primer on 3D Programming
    By songohan in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-10-2001, 10:07 AM
  5. 3D Hardware "primer"
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-28-2001, 07:41 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