Results 1 to 4 of 4

Thread: A 3d library with no matrices or vectors ? wtf?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2004
    Location
    Portsmouth, UK
    Posts
    1

    A 3d library with no matrices or vectors ? wtf?

    Hello,

    So I've started playing with OpenGL running under Fedora Core 2 and I've got a textured, lit polygon being displayed (yay!)

    However, I've now looked at doing something more useful and I really can't believe what I'm seeing.

    So OpenGL doesn't support any kind of matrix or vector ? I can't just get an object, and set it's matrix directly ?

    I.e. I've got an object's points, it's triangle list, and I know it's look at and position. I can't just whack this straight into the object matrix ? I've got to build it up from rotations and translations ? This seems really inefficient, or have I missed something somewhere ?

    Also, there is no camera matrix ? So I guess I can just pretend there is, invert it, and concat the inverse camera matrix to my object matrices ? Er, no, it looks like I can't ? So given this, how is it possible to do anything in OpenGL ? How can I have an arbitary camera in an arbitary room with objects placed in arbitary positions ? So far, it doesn't look like it's possible without a LOT of awkward maths.

    Please help, I've come so far!

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    22

    Re: A 3d library with no matrices or vectors ? wtf?

    LOL, that was hilarious!

    Check out this:
    http://www.opengl.org/resources/tutorials/index.html

    and this (the opengl tutorials section):
    http://nehe.gamedev.net/
    I'm not a native english speaker - hell, i barely manage to make myself understandable!

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: A 3d library with no matrices or vectors ? wtf?

    you do seem to have missed something somewhere

    glLoadMatrix :
    http://pyopengl.sourceforge.net/docu...dMatrix.3G.xml

  4. #4
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: A 3d library with no matrices or vectors ? wtf?

    www.gametutorials.com might also be slightly useful.

Similar Threads

  1. Replies: 0
    Last Post: 06-19-2015, 05:59 AM
  2. Replies: 0
    Last Post: 05-16-2010, 09:46 AM
  3. lib of matrices and vectors
    By nonox in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-15-2010, 08:09 PM
  4. 4D-Vectors and 3*3 Matrices
    By msteinberg in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 04-11-2002, 12:21 AM
  5. Vectors & Matrices (not really a question)
    By BwB in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 03-17-2001, 07:26 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