Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kcaz

macrumors newbie
Original poster
Apr 8, 2009
2
0
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:
 

FlashTheInfidel

macrumors newbie
Feb 13, 2007
8
0
(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?
 

kcaz

macrumors newbie
Original poster
Apr 8, 2009
2
0
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?
 

lazydog

macrumors 6502a
Sep 3, 2005
709
6
Cramlington, UK
(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?

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
 

ChrisA

macrumors G5
Jan 5, 2006
12,922
2,181
Redondo Beach, California
The other recommendation I see regularly is to look at the Red Book - but that's even worse IIRC -

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.
 

autorelease

macrumors regular
Oct 13, 2008
144
0
Achewood, CA
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
 

FlashTheInfidel

macrumors newbie
Feb 13, 2007
8
0
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

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.