OpenGL Graphic Rendering

Discussion in 'Mac Programming' started by kcaz, Apr 8, 2009.

  1. macrumors newbie

    Joined:
    Apr 8, 2009
    #1
    Hello,

    I have searched everywhere, but I cannot seem to find a tutorial or even source code on how to add texture to an object using OpenGL. Can anyone point me in the right direction, or help me out?

    Thanks so much,
    ~Kcaz:confused:
     
  2. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #2
  3. macrumors newbie

    Joined:
    Feb 13, 2007
    #3
    (Sorry to hijack this topic a bit)

    Are there any modern tutorials for OpenGL that anyone knows of on the web? I used NeHe back in the day, but now I look at the early tuts and cringe every time I see a glBegin or display list... The other recommendation I see regularly is to look at the Red Book - but that's even worse IIRC - Have I missed something obvious?
     
  4. thread starter macrumors newbie

    Joined:
    Apr 8, 2009
    #4
    Well I was looking at those before, but arent those for windows? Also you have to use glaux.

    Can it be ported to mac code?
     
  5. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #5

    Hi

    If you go to the bottom of the page for tutorial 6 there is a link to a Mac OSX GLUT port.

    b e n
     
  6. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #6
    I don't know if this thread will be of any help but the second post has a few links you might want to follow up on.

    b e n
     
  7. macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #7
    I can't imagine writing openGL without a copy of the red book on hand. It's a must-read.

    But maybe what you need is a basic introduction to computer graphics. One that does not even talk about programming but covers things like triangle meshes, transformation matrices, camera locations and so on. OpenGL is only an implementation of these basic ideas. Best to learn the concepts first.
     
  8. macrumors regular

    Joined:
    Oct 13, 2008
    Location:
    Achewood, CA
    #8
    The OpenGL SuperBible (light blue book) covers both fixed-function OpenGL (the "Old Testament") and programmable-pipeline OpenGL (the "New Testament") as well. I don't think there's a free version on the web, so you'll have to plunk down some cash. It's worth it though.

    The Red Book isn't as relevant now as it used to be, but every programmer worth his/her salt has one. I remember learning OpenGL from first edition Red and Blue Books, copyright 1993...

    Also, learn2developer.apple.com
    http://developer.apple.com/DOCUMENT...L-MacProgGuide/opengl_intro/opengl_intro.html
     
  9. macrumors newbie

    Joined:
    Feb 13, 2007
    #9
    Thanks and thanks to autorelease - I'll have to chase up the light blue book (heard of it - never actually read it).

    We do keep a Red Book in the office but it's not been opened since I arrived - although it does avoid the ignominy of being used as a monitor stand :) (I work as developer support for a GPU hardware design company btw). All I know is that I had to forget a lot of things from the Red Book (glBegins and display lists) and start again with things like VBOs etc. in order to get up to speed with modern graphics when I got this job. The old book's not wrong, but neither is it 1993 anymore, sadly.
     
  10. macrumors regular

    Joined:
    Dec 15, 2007
    #10
    The newer version of the red book does cover VBO's in chapter 2 or 3.
     
  11. macrumors newbie

    Joined:
    Feb 13, 2007
    #11
    Sounds like I need to upgrade then :)
     

Share This Page