Attention: iDevGames forum has a new home at http://www.idevgames.com/forums.
Please update your bookmarks and linkage.
This forum has been locked and will be available for archival purposes only.
iDevGames - Mac, iPhone, iPad & iPod Game Developers Forum  


Graphics & Audio Programming All aspects of coding 2D/3D graphics.

 
 
Thread Tools Display Modes
Old
  (#1)
Case
 
Posts: n/a
Quartz for 2d Graphics - 2003.06.28, 01:25 AM

I've been looking at OpenGL for graphics for a 2d game I would like to make - But god it's hard.

Now the game I intend on making is a 2d side scrolling game which will have upto 50 sprites moving around at once. Will quartz handle this to a useable level, I don't care if the frame rates arn't huge just as long as the animations look smooth.

Do I need OpenGL? Or will Quartz do the trick?

Thanks
   
Old
  (#2)
OneSadCookie
Member
 
Posts: 4,923
Join Date: 2002.04
Location: Darkest California
2003.06.28, 02:07 AM

Quartz is harder than OpenGL

It should handle those requirements OK, though, I'd think.
   
Old
  (#3)
Bachus
 
Posts: n/a
2003.06.28, 05:21 AM

Quartz can certainly handle that, but if the user doesn't have Quartz Extreme or a really fast computer it'll be unplayably slow. Especially since it's a scrolling game. OpenGL on the other hand can handle this no sweat.

Do you have a reason to use Quartz over OpenGL? OGL really is pretty easy to learn, at least compared to Quartz or Quickdraw.
   
Old
  (#4)
kelvin
Member
 
Posts: 575
Join Date: 2002.10
Location: Silicon Valley
2003.06.28, 06:27 AM

Quartz won't handle that well on low end systems. (like my 450Mhz G3 Rage128) :P I'll be getting like 10fps if you do it in quartz.

use opengl.

I probably won't have CocoaBlitz documentation done untill udg2k3 starts. (course that's a big must for me)


---Kelvin--
O.I.M.

15.4" MacBook Pro revA
1.83GHz/2GB/250GB
   
Old
  (#5)
Patrick
 
Posts: n/a
2003.06.28, 10:27 AM

Don't bother with Quartz for games, it's too slow ( QE doesn't do anything except composite windows, so don't look for speed from there )

Use QuickDraw, SpriteWorld, or CocoaBlitz if you don't want to learn OpenGL. SpriteWorld is a lot bigger and more mature than CB, but it's really geared towards Carbon usage, so getting it working with Cocoa could take some effort, and it has C / C++ APIs rather than Obj-C.
   
Old
  (#6)
Damian
Member
 
Posts: 59
Join Date: 2002.09
Location: Sydney
2003.06.29, 06:33 AM

If it's sidescrolling, you'll have to replace every pixel in the window. The more pixels you replace, the bigger OpenGL's advantage. I am working on a game that moves two large sprites and a couple of smaller ones, but not the background, and Quartz is delivering 25 fps on a 500MHz G3 running 10.1.5.


Visit www.theDailyGrind.net for your recommended daily intake of embittered satire.
   
Old
  (#7)
lillo
 
Posts: n/a
2003.06.29, 06:55 AM

<shameless plug>
You may also want to have a look at Allegro; under OSX it uses QuickDraw if in windowed mode, or directly draws to the screen if in fullscreen mode. If you don't want to learn QD or OpenGL, have a look at it; it has a really easy to use API...
</shameless plug>

Whatever API you choose, keep in mind that it all depends on what kind of game you're making; a sidescroller updates the whole screen every frame, so maybe OpenGL is better since it gives you hardware acceleration for free. But any 2d API will work great too if your code is smart enough.
   
 


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com
DevServe Network: iDevApps | uDevGames | iDevGames