Results 1 to 2 of 2

Thread: Help me understand viewing transformations

  1. #1
    Member Newbie
    Join Date
    Jul 2009
    Posts
    33

    Help me understand viewing transformations

    I have now almost read the Red book but I still find the logic of the viewing transformations very hard.

    Have a look at this image: http://img17.imageshack.us/img17/5290/opengll.png

    I would like to make some quads, each of them in the same size, but in different Z and X positions.

    What is the correct way to make this?

    Like
    Code :
    glTranslate*();
    glBegin(GL.GL_QUADS);
    first quad
    second quad
    third quad
    ...
    glEnd();
    or
    Code :
    glTranslate*();
    glBegin(GL.GL_QUADS);
    first quad
    glEnd();
     
    glTranslate*();
    glBegin(GL.GL_QUADS);
    secondquad
    glEnd();
     
    glTranslate*();
    glBegin(GL.GL_QUADS);
    third quad
    glEnd();

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: Help me understand viewing transformations

    the second one looks like a winner, just make sure you get the right order and numbers, or just give it a whirl and see what happens.

    though the probably easiest and most correct way is to add a pop matrix and push matrix around each set

Similar Threads

  1. Viewing transformations and Coordinates
    By dvwood in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-29-2009, 06:15 PM
  2. N00b help - specifically viewing, transformations
    By ankitmcgill in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-21-2008, 08:38 AM
  3. Navigating using Viewing Transformations
    By rangers99 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-12-2002, 09:24 PM
  4. viewing transformations help please!!!
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-05-2000, 04:33 PM
  5. Viewing transformations in 3D
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-26-2000, 09:39 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