Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2011, 04:50 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 13
aitorman is on a distinguished road
Default Learn OpenGL or start with game engine

Hi, I've been learning iphone development for a while , and now I want to start with game development, but I've a doubt. Should i start from the low level and learn OpenGL first, or it's better to start using directly a Game Engine, such as cocos2d? I hope you can help me
P.D: Sorry of my english, I'm from europe and I don't speak it very well
aitorman is offline   Reply With Quote
Old 07-23-2011, 12:06 AM   #2 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

It is weird that not many devs are replying to threads in this forum anymore. I have no idea, maybe they are doing extremely well and enjoying their profits lol.

Anyway, for your question, I suggest you directly go into cocos2d. cocos2d is way better than the raw openGL. I've done openGL on my windows system before, and I take a look at cocos2d and impressed with its simplicity.

But remember if your planned game is just a very simple one, like tictactoe, you can accomplish that without learning even cocos2d, but just to use XCode and NSTimers.
rocotilos is offline   Reply With Quote
Old 07-23-2011, 04:59 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 13
aitorman is on a distinguished road
Default

Ok, thank you for the reply . So I'll try to learn cocos2d. I've found this page: iPhone Tutorials | Ray Wenderlich and this book: Learn iPhone and iPad cocos2d Game Development . Are they good to start learning? But wouldn't it be better to understand the underlying concepts of Cocos2D?(cocos2D is based on OpenGL, isn't it)And if i wanted to develop 3D games, would it be worth to learn OpenGL?
aitorman is offline   Reply With Quote
Old 07-23-2011, 01:03 PM   #4 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Yep. Ray Wenderlich writes some of the best tutorials out there. I can't comment on any books though. I've read 0 books about XCode.

OpenGL is somewhat a LOW LEVEL programming. It takes ~ 10 lines to construct a static plain colored quad. with cocos2d, probably just 1 line (not really sure because I've haven't started on it yet). So it all boils down to your preference. Some guys like to code in ASM even. Some prefer OOB, and so on.

For 3D, there are also game engine for that, Unity3D, and some other. I heard even cocos3d is also coming soon. And yes, you can also use openGL for 3d stuffs as well.

If you are serious about game programming, probably you should try both of cocos2d and openGL, doing something simple (like creating a moving triangle) using both language and see what suits you the best.
rocotilos is offline   Reply With Quote
Old 07-23-2011, 03:42 PM   #5 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 261
vbovio is on a distinguished road
Default

It will take you far more time learning OpenGL than starting with an engine like cocos2D.
I use my own engine to code my games, it is C++ based and wraps openGL so the code for the game does not has any calls to openGL, this is good if then I port my engine to another API like DirectX.. also I am those kind of guys that want to know what's happening underneath and have full control over it, no third party libs if possible, etc.
But it took me a significant amount of time (years) to get that engine at such good level, I had to learn OpenGL well, then learn about how to code an engine well, test it, use it, debug, refine, etc.. I also learned looking/using several other engines out there for PC like PTK & HGE, then when iPhone came out I just ported my engine.
It also depends what are your goals, if you want to have a game out there soon, pick an engine.
hope it helps.
__________________
BovioSoft Games
vbovio is offline   Reply With Quote
Old 07-23-2011, 11:05 PM   #6 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Quote:
Originally Posted by vbovio View Post
It will take you far more time learning OpenGL than starting with an engine like cocos2D.
I use my own engine to code my games, it is C++ based and wraps openGL so the code for the game does not has any calls to openGL, this is good if then I port my engine to another API like DirectX.. also I am those kind of guys that want to know what's happening underneath and have full control over it, no third party libs if possible, etc.
But it took me a significant amount of time (years) to get that engine at such good level, I had to learn OpenGL well, then learn about how to code an engine well, test it, use it, debug, refine, etc.. I also learned looking/using several other engines out there for PC like PTK & HGE, then when iPhone came out I just ported my engine.
It also depends what are your goals, if you want to have a game out there soon, pick an engine.
hope it helps.
Hi vbovio, thanks for sharing. So I wonder now, can you share to me your iPhone gl based game engine?
rocotilos is offline   Reply With Quote
Old 07-24-2011, 09:27 AM   #7 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 13
aitorman is on a distinguished road
Default

Ok, thank you again for the replies. I think I'll start learning cocos2D and I'll use it to make my real games, but I also want to learn OpenGL and understand how things really work in a lower level. Thank you!
aitorman is offline   Reply With Quote
Old 09-29-2011, 07:09 PM   #8 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 5
Steffen Itterheim is on a distinguished road
Default

Quote:
Originally Posted by aitorman View Post
Ok, thank you for the reply . So I'll try to learn cocos2d. I've found this page: iPhone Tutorials | Ray Wenderlich and this book: Learn iPhone and iPad cocos2d Game Development . Are they good to start learning? But wouldn't it be better to understand the underlying concepts of Cocos2D?(cocos2D is based on OpenGL, isn't it)And if i wanted to develop 3D games, would it be worth to learn OpenGL?
You don't need to understand the underlying concepts. After all, you want to make games, not write game engine code.

Thanks for checking out my book. The second edition is coming out soon: Learn Cocos2D 2nd Edition: What’s New & Release Date | Learn & Master Cocos2D Game Development

I'm also working on an improved version of Cocos2D which fixes many of the issues beginning developers face and takes cross-platform (iOS & Mac OS) development seriously. It's called Kobold2D: Home - Kobold2D? -Kobold2D
Steffen Itterheim is offline   Reply With Quote
Old 10-10-2011, 02:33 PM   #9 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 57
mihaipruna is on a distinguished road
Default

Quote:
Originally Posted by aitorman View Post
Hi, I've been learning iphone development for a while , and now I want to start with game development, but I've a doubt. Should i start from the low level and learn OpenGL first, or it's better to start using directly a Game Engine, such as cocos2d? I hope you can help me
P.D: Sorry of my english, I'm from europe and I don't speak it very well
You will probably discover that cocos2d does most of what you need, so I would recommend starting with that.
Occasionally you will be using raw openGL to perform certain tasks Cocos2D doesn't do, for instance, creating a shape programmatically.
For that, Google will offer plenty of resources of canned OpenGL code available for you to tweak to your liking.
It helps to understand the state concept of OpenGL (I still don't fully understand it) and the basics of graphics programming.
This has been my experience.
If you check out the screenshots of my game (link below), you will notice sprites and triangles. The sprites were loaded from files with cocos2d, while the triangles were generated with OpenGL commands.
mihaipruna is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 412
10 members and 402 guests
AppleDev, chemistry, Emy, hussain1982, ipodphone, mistergreen2011, pipposanta, Retouchable, skrew88, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,923
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:19 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0