MacTech Network:   MacForge.net  |  Computer Memory  |  Register Domains  |  Printer Supplies  |  Cables  |  iPod Deals  |  Mac Deals  |  Mac Book Shelf


  MacTech Magazine

The journal of Macintosh technology

 
 
StuffIt

Magazine In Print
  About MacTech  
  Home Page  
  Subscribe  
  Archives DVD  
  Submit News  
  Submit a Tip!  
  Get a copy of MacTech RISK FREE  
Google
Entire Web
mactech.com
Mac Community
More...
MacTech Central
  by Category  
  by Company  
  by Product  
MacTech News
  MacTech News  
  Previous News  
  MacTech RSS  
Article Archives
  Show Indices  
  by Volume  
  by Author  
  Source Code FTP  
Inside MacTech
  Writer's Kit  
  Editorial Staff  
  Editorial Calendar  
  Back Issues  
  Advertising  
Contact Us
  Customer Service  
  MacTech Store  
  Legal/Disclaimers  
  Webmaster Feedback  
ADVERTISEMENT
Click Here

Volume Number: 14
Issue Number: 3
Column Tag: MacTech Online

MacTech Online

by Nicholas C. "nick.c" DeMello, online@mactech.com

With the coming of Rhapsody, Macintosh platform developers are going to have a wealth of powerful new tools at our disposal, including tools that will allow us to display spectacular and interactive 3D graphics. Two 3D graphics technologies vying for the center stage in Rhapsody are OpenGL and QuickDraw 3D.

OpenGL

Although Apple hasn't announced a decision at the time this column went to press, Rhapsody will likely support OpenGL. Originally developed as the graphics library for Silicon Graphics Iris systems in 1992, OpenGL has since evolved into the most widely accepted cross platform graphics API. It offers low level routines for defining, manipulating, and rendering 2D and 3D objects independent of the user interface. Especially popular with CAD programmers and the de facto standard for scientific and engineering applications, OpenGL has remarkably fast drawing routines (largely because most implementations of OpenGL interface directly with hardware). The API includes functions for easily scaling, translating, and rotating 3D objects, while offering control of polygon shading, depth cueing, and atmospheric effects in the rendering of those objects to a 2D representation. To learn more about OpenGL, visit the OpenGL information center. The information center reports the latest OpenGL news and hosts a collection of resources (including one page with links to over dozen FAQ's on various aspects of OpenGL programming).

The first Mac OS implementation of OpenGL was developed by Conix Graphics, and their web site displays a half dozen impressive demonstration models. Conix OpenGL offers royalty free distribution with your product and will run under Mac OS 7 -- which means you can start developing and distributing OpenGL products immediately. Folks looking into Java should also check out Magician (an OpenGL implementation for Java) by Arcane Technologies.

With half a decade of development, OpenGL represents a mature API that is well supported by a wealth of example code, a large base of developers (so many, they started their own newsgroup :-), and extensive documentation (including an online reference at HP's website). If your application requires fast drawing or 3D representation, you should take a closer look at what OpenGL offers.

OpenGL Information Center, Hosting the OpenGL FAQ Index
http://www.opengl.org/
http://www.opengl.org/Developers/Documentation/devfaqlist.html
OpenGL for the Macintosh, by Conix Graphics
http://www.conix3d.com/
Magician: OpenGL for Java
http://www.arcana.co.uk/products/magician/
Some Example Code for OpenGL
http://trant.sgi.com/opengl/examples/examples.html
The OpenGL Newsgroup
news:comp.graphics.api.openGL
OpenGL 1.1 Reference Online
http://www.hp.com/wsg/products/grfx/OpenGL/Web/Reference.html

QuickDraw 3D

In the Summer of 1995, Apple introduced it's own cross-platform graphics API -- QuickDraw 3D. The strengths of QuickDraw 3D are common Apple themes -- it's easy to use, the graphics are spectacular, and the technology is plug & play. While Rhapsody is likely to support OpenGL, QuickDraw 3D will certainly be there as well. Apple is not likely to abandon either this promising technology or the developers who have invested in it.

QuickDraw 3D may be less a competitor to OpenGL than a complement to it. A higher level API than OpenGL, QuickDraw 3D is fully object oriented and supports complex geometries like non-uniform rational B-spline (NURB) curves. Other high level features of the QD3D layer, include a portable data format (the 3D metafile), and an interactive renderer make it easier to work with than OpenGL. To get started with QuickDraw 3D you'll want to download the SDK from Apple's QuickDraw 3D site. While example QD3D code can be hard to come by, Brian Greenstone of Pangea Software has made the source code for his OreoAnimator available -- make sure to download a copy. Also, consider joining the QuickDraw 3D mailing list.

QuickDraw 3D resides on a hardware abstraction layer called the QuickDraw 3D Acceleration Layer. The interface to this layer is called RAVE (Render Acceleration Virtual Engine) and can be accessed either directly from your application or by QuickDraw 3D. Hardware acceleration or software enhancements can be added to QuickDraw 3D by registering either with RAVE. For example, LightWork Design has developed five plug-ins for QuickDraw 3D that offer advanced ray tracing features including ray cast shadows, radiosity, glass like reflectance, transparency, and ambient lighting. With the LightWork plug-ins your QuickDraw 3D applications can generate spectacular photo-realistic images. To find out more about the QuickDraw 3D Acceleration Layer see Apple's QuickDraw 3D RAVE pages.

Apple's QuickDraw 3D Site (including the SDK)
http://quickdraw3d.apple.com/
OreoAnimator Source Code, Provided by Pangea Software
http://www.realtime.net/~pangea/
To Sign Up for the QD3D Mailing List
quickdraw-3d-request@devtools.apple.com
LightWork Plugins, Enhanced Rendering for QD3D
http://www.lightwork.com/qd3d/
QuickDraw 3D Rave and the QuickDraw 3D Acceleration Layer
http://devworld.apple.com/dev/techsupport/insidemac/


Click here to find out more about our best subscription bundle deal ever!
2 years of the magazine, and the all new MacTech DVD ... at 70% off!



Click on the cover to
see this month's issue!

TRIAL SUBSCRIPTION
Get a RISK-FREE subscription to the only technical Mac magazine!
 
 


MacTech Magazine. www.mactech.com
Toll Free 877-MACTECH, Outside US/Canada: 805-494-9797

Register Low Cost (ok dirt cheap!) Domain Names in the MacTech Domain Store. As low as $1.99!
Save on brand compatible and name brank ink jet and laser supplies.
Save on long distance * Upgrade your Computer
Movies with No Late Fees!

See local info about Westlake Village
SJ * BRJ * BJ * OJ * NITS
Staff Site Links



All contents are Copyright 1984-2007 by Xplain Corporation. All rights reserved.

MacTech is a registered trademark of Xplain Corporation. Xplain, Video Depot, Movie Depot, Palm OS Depot, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, NetProLive, JavaTech, WebTech, BeTech, LinuxTech, Apple Expo, MacTech Central and the MacTutorMan are trademarks or service marks of Xplain Corporation. Sprocket is a registered trademark of eSprocket Corporation. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.