Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

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,575

    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
    Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    471

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

    www.gametutorials.com might also be slightly useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •