PDA

View Full Version : OpenGL Graphic Rendering




kcaz
Apr 8, 2009, 10:17 PM
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:



lazydog
Apr 9, 2009, 04:20 AM
Hi

Have a look here, http://nehe.gamedev.net/. I think texture mapping is lesson 6 or thereabouts.

b e n

FlashTheInfidel
Apr 9, 2009, 06:49 AM
(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
Apr 9, 2009, 06:53 AM
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
Apr 9, 2009, 07:10 AM
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?


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

lazydog
Apr 9, 2009, 07:26 AM
(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 (http://www.ozone3d.net/tutorials/opengl_vbo.php?lang=2) will be of any help but the second post has a few links you might want to follow up on.

b e n

ChrisA
Apr 9, 2009, 10:29 AM
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
Apr 9, 2009, 02:11 PM
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/DOCUMENTATION/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_intro/opengl_intro.html

FlashTheInfidel
Apr 9, 2009, 04:01 PM
I don't know if this thread (http://www.ozone3d.net/tutorials/opengl_vbo.php?lang=2) 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.

priller
Apr 10, 2009, 11:31 PM
The newer version of the red book does cover VBO's in chapter 2 or 3.

FlashTheInfidel
Apr 11, 2009, 08:19 AM
The newer version of the red book does cover VBO's in chapter 2 or 3.

Sounds like I need to upgrade then :)