beginning opengl

Member
Posts: 35
Joined: 2005.01
Post: #1
ok what do I need to download if I want to start using OpenGL with Mac Os X and codewarrior? I have codewarriro 4.2.5 and I keep trying to get it to work. What do I need to do if I want it to work?
Thanks
Quote this message in a reply
Member
Posts: 321
Joined: 2004.10
Post: #2
I probably started using openGL about a year and a half ago so alot of the very
early days are getting hazy. I still use OS9 (which is a hinderance) and codewarrior.
Everything is now OS X orientated so that is one thing going for you.

Your question is way too vague and open ended? You must be more specific.

Also, I can't recommend NeHe web's site enough for beginners. Google it and
you'll find it with ease. Run, don't walk over there. Check out the tutorials.
They are written in all different languages but also have OS X examples.

NeHe (short for Neon Helium - yes, interesting handle) even have a startup page
for Sun, XP, Linus and OS X. This might answer your question.

Goodluck. Also you might have heard about the Red Book. It is the openGL bible.
I've got an incredibly dog eared copy, but it is on-line too if money is tight.

And this is a pretty good web site that you've posted to. Me notwithstanding.

goodluck.
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #3
vbuser Wrote:what do I need to download

The OpenGL SDK provided by http://developer.apple.com

Quote:Mac Os X
It's Mac OS X
(Macintosh Operating System Ten Smile)

Quote:I have codewarriro 4.2.5

I don't know how old/new that is but if your using codwarrior YOU NEED THE LATEST .h FILES
AND LIBRARIES. Smile

What version of Codewarrior IDE do you have (it should be slightly higher than 4.x)

Quote: I keep trying to get it to work. What do I need to do if I want it to work?

Are you using GLUT or AGL???
Do you have #include <OpenGL/gl.h>
or #include <gl.h>




WhatMeWorry Wrote:I can't recommend NeHe web's site enough for beginners

I assume from the context that you want him to look at NeHe...

I DON'T RECOMMEND NEHE FOR MAC OS USERS ! ! ! ! Mad

It's for Windows users...
and is very kryptk in how stuff works...
AND YOU HAVE TO FINISH EACH TUTORIAL BEFORE YOU CAN
WORK ON ANOTHER... (unless they start with all the code and not just some)

I DOOOOOO RECOMMEND THE RedBook though. Smile
(Google: "RedBook OpenGL Programming" (first link))
.
.
.
.
.
.
But, thats my opinion. LOL

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #4
Oh, and if you have any error code please post it. @:-)

Global warming is caused by hobos and mooses
Quote this message in a reply
Member
Posts: 196
Joined: 2003.10
Post: #5
In a rare moment, I'd tend to agree with BinarySpike. Nehe's tutorials, while a good source for a graduated-type learning curve in OpenGL, are windows-centric. The walkthrough of the code, which is its strongest aspect, covers the windows source code - often times the mac code is significantly different, with large, unexplained sections. I found it easier to learn by myself, asking piles of questions in #idevgames (thanks for that, folks Wink). That said, I hardly know anything about OpenGL, and perhaps had I followed the tutorials I'd know more. It's a tough question.

-Aaron
Quote this message in a reply
Moderator
Posts: 700
Joined: 2002.04
Post: #6
You might find these useful - a no. of (Project Builder/Xcode project) ports to Carbon and SDL of NeHe's tutorials - although the list isn't complete, and they're pretty buggy (no show-stoppers, just incorrect assumptions about the way OGL worked Blush)

Depending on your level of coding experience, I'd recommend against the Red Book at first; I found Beginning OpenGL Game Programming (Dave Astle, Kevin Hawkins) much more useful.

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Member
Posts: 35
Joined: 2005.01
Post: #7
I downloaded the openGl SDK version 1.2. Is that the latest? But I have the red book for Learning but the porblem is it uses headers that the SDK does not come with. Things like <aux.h> and <tk.h> I think. Where do I need to get these from. What do I need to do if i want it to work?
Thanks
Quote this message in a reply
Member
Posts: 35
Joined: 2005.01
Post: #8
Oh ya I am using GLUT
Thanks
Quote this message in a reply
Member
Posts: 196
Joined: 2003.10
Post: #9
Have you ever programmed before? If not, you should start by learning a language, and graduate slowly up to OpenGL. OGL is terrifically complicated.
Quote this message in a reply
Member
Posts: 35
Joined: 2005.01
Post: #10
yes I have programmed before. I have programed vb for 2 years and C++ for awhile. But I can't get OpenGl to work. Is the red book used for windows or can I use it for mac too?
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #11
vbuser1338 Wrote:Is the red book used for windows or can I use it for mac too?
AFAIK, the Red book is not platform-specific. Last time I looked, an older PDF version of it was available free at GameDev.net.
Quote this message in a reply
Member
Posts: 338
Joined: 2004.07
Post: #12
Have to chime in and second NeHe. It's awesome and how I first learned OpenGL. Nearly all the lessons have a Mac OS port, both CodeWarrior and Project Builder, and would be the best place to start if you can't get anything working yet. The tutorials are very straightforward, and aside from the first few don't need to be done in order. (If you don't know how to do polygons, I don't know why you'd want to try the harder stuff first, anyway.) When I learned, I went through the first 10 in order (took about 2-3 days), then skipped around to things I found interesting, like particle systems and whatnot.

On books, besides the Red Book, I found the OpenGL SuperBible very helpful. Both books do a great job of leaving out any platform specific stuff, so you can easily use them for Mac.

Justin Ficarrotta
http://www.justinfic.com
"It is better to be The Man than to work for The Man." - Alexander Seropian
Quote this message in a reply
Member
Posts: 116
Joined: 2002.04
Post: #13
Quote:I downloaded the openGl SDK version 1.2. Is that the latest? But I have the red book for Learning but the porblem is it uses headers that the SDK does not come with. Things like <aux.h> and <tk.h> I think. Where do I need to get these from. What do I need to do if i want it to work?

I dunno if you're quite ready for OpenGL yet.

The SDK you downloaded clearly says it's for OS 9. (Everything needed for OS X OpenGL is included with the OS and developer tools)

Quote:CodeWarrior 4.2.5

I suspect you have zero chance of getting that to work on OS X. OS X development generally requires CW 8.3 or later. You could of course, use XCode.

Download this:

http://developer.apple.com/samplecode/GL...Basics.sit

and study it in detail. That should get you started.

Wade
Quote this message in a reply
⌘-R in Chief
Posts: 1,260
Joined: 2002.05
Post: #14
You do NOT need the OpenGL SDK. Trash it. Everything you need is already in Mac OS X.
Quote this message in a reply
Member
Posts: 277
Joined: 2004.10
Post: #15
FreakSoftware Wrote:You do NOT need the OpenGL SDK

It was from my inpression of Codewarrior that you can't use frameworks.

I thought you had to use Mac os 9 type linking... Huh
(unless the frameworks can be extracted Huh)



vbuser Wrote:But I have the red book for Learning but the porblem is it uses headers that the SDK does not come with. Things like <aux.h> and <tk.h> I think.

I don't remember the RedBook having these headers in it. Huh
(What page???)

All the stuff in the RedBook is GLUT code... (I port it to AGL for more control)

Well, really, I just read it then add it to my code (I don't test the code they give).

Global warming is caused by hobos and mooses
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Beginning 2D Graphics Programming Three 5 4,815 Jan 18, 2009 02:48 PM
Last Post: chicknstu
  Beginning ARB vertex programs dfmoore 1 2,872 Sep 24, 2005 02:45 PM
Last Post: lightbringer