I would be weary about using GLUT for your entire application. While GLUT does provide a quick way to throw up some OpenGL code and it is platform independent, it is not the Cocoa solution. You are going to want to make a custom subclass of NSOpenGLView and then draw your content in that.

Check out the Mac OS X OpenGL Programming Guide:
http://developer.apple.com/documentation/graphicsimaging/conceptual/OpenGL-MacProgGuide/opengl_drawing/opengl_drawing.html#//apple_ref/doc/uid/TP40001987-CH404-SW5

Kevin

--------------------------
Kevin Cathey


On 5 Jun 2009, at 21:33, Development wrote:

Ok well I've seen a glut example that builds a 3d 'mech' and allows it's movement via the keyboard. So I suppose I'll be learning opengl with a focus on the glut library then.

On Jun 5, 2009, at 8:53 PM, Andrew Farmer wrote:

On 5 Jun 2009, at 20:46, Mr. George Warner wrote:
On Fri, 5 Jun 2009 18:29:52 -0700, Development <[email protected] > wrote: > First, Do I have to learn OpenGL in order to utilize 3d data? I was
> hoping maybe there would be a way to use things I have built in
> Blender via cocoa some how. Or is it possible to some how use a 3d
> format of some type in an NSImage or something similar.

There are lots of (3rd party) 3D frameworks available for Mac OS X that don't require any OpenGL knowledge (including Blender at: <http://www.blender.org/download/get-blender/ >).

Blender is a 3D modeling and animation tool, not a library.

To return to the original poster's question, yes - you will have to either write some OpenGL code or use something outside Cocoa to get 3D graphics. NSImage is strictly limited to 2D images.

(I'm purposefully ignoring QD3D here, because it's completely unsupported. I'm not sure if it's even available under OS X.)
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/development%40fornextsoft.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/cathey%40apple.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to