Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Fast 2D graphics in OS X

Fast 2D graphics in OS X
Thread Tools
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Jan 15, 2002, 08:12 PM
 
What would be the best way to do fast sprites in OS X? Would Quartz be the best choice or OpenGL maybe or maybe even some sprite library?
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 15, 2002, 08:41 PM
 
I love OpenGL. Once you get used to it and write your own sprite utility functions, you won't have to worry about using less graphic elements to speed it up.

Leaves rooms for neat particle effects too.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Boulder, CO, USA
Status: Offline
Reply With Quote
Jan 15, 2002, 11:35 PM
 
Yeah, OpenGL is good. It's "the fastest pipeline in the system", according to the graphics presentation at the last WWDC.

Check out some of the sample code they've got posted.
     
Forum Regular
Join Date: Jan 2000
Location: Altadena
Status: Offline
Reply With Quote
Jan 16, 2002, 01:03 AM
 
They are even using OpenGL to accelerate the Java GUI, unfortunately it is not quite ready for primetime.

Daniel
     
Senior User
Join Date: Feb 2001
Location: Rochester, uk
Status: Offline
Reply With Quote
Jan 16, 2002, 04:11 AM
 
Originally posted by deharlow:
<STRONG>They are even using OpenGL to accelerate the Java GUI, unfortunately it is not quite ready for primetime.</STRONG>
Que? Nan des ka? Huh?

I thought OpenGL was just a 3D API? How can it be useful for 2D window compositing, Swing style?

[edit: corrected the nippon]

[ 01-16-2002: Message edited by: sadie ]
All words are lies. Including these ones.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 16, 2002, 09:39 AM
 
GL is 3D, but it contains many provisions for 2D graphics, such as orthographic projection.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
iJed  (op)
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Jan 16, 2002, 08:07 PM
 
Nobody seems to have mentioned Quartz - is this because it is quite slow (maybe due to complexity) compared to other graphics systems? I know it has great alpha blending and text drawing, which would probably come in handy for what I am wanting to do (a sprite based game). The only Quartz that I have tried so far is a port of a simple wireframe 3D viewer app, and it would draw the images about 1/5 the speed of an equivalent spec Wintel system. It did nicely antialias all the lines though.
     
Senior User
Join Date: Jul 2001
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Jan 16, 2002, 08:46 PM
 
The great thing about OpenGL is the powerfull hardware acceleration. Quartz at the moment is 100% cpu based.
     
Grizzled Veteran
Join Date: Sep 1999
Location: Boston, MA USA
Status: Offline
Reply With Quote
Jan 17, 2002, 09:04 AM
 
Aren't there still a bunch of Macs out there for whom OpenGL is miserably slow?
     
Senior User
Join Date: Jul 2001
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Jan 17, 2002, 09:19 AM
 
All machines with Ati Rage, Rage II and Rage Pro Gfx.
     
Mac Enthusiast
Join Date: Jan 2002
Location: Trondhjem, Norway
Status: Offline
Reply With Quote
Jan 17, 2002, 05:32 PM
 
In OpenGL, 2D is just a special case of 3D. Internally, OpenGL treats them in the same way. (At least that's what the book I'm reading says...)

I think www.stepwise.com had some notes from a 2D session at last WWDC. There was some info about fast 2D and what API to choose.
זרו
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 09:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2