Re: A couple questions about graphics
Re: A couple questions about graphics
- Subject: Re: A couple questions about graphics
- From: Kevin Cathey <email@hidden>
- Date: Sat, 6 Jun 2009 13:52:45 -0700
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@hidden
> 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@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden