开发者

library for mac to load and manipulate 3d objects

开发者 https://www.devze.com 2023-02-11 05:52 出处:网络
I am trying to learn the basic of 3d for Mac using Xcode, so I would like to know what could I use to achieve these results :

I am trying to learn the basic of 3d for Mac using Xcode, so I would like to know what could I use to achieve these results :

-load a 3d object (3ds, obj, etc)

-add some interaction (use the mouse to rotate, zoom, pan)

-take a snapshot of the object so it can be saved as image

I know that a library that doe开发者_如何转开发s it all is not available; but I hope to find suggestions about what i can use.

Has anyone any experience with libraries/frameworks that can help me to achieve these goals? Or tutorials that explains how to do what i am trying to achieve?

Thanks!


Visit Nate Robbins websight and download the tutorial (with source code) for OS X. In addition to letting you walk through some basic concepts for OpenGL, it contains the source code for loading 3d files in OBJ format (glm.c) in addition to view manipulation routines.

Examples for printing an OpenGL context are here : Cocoa Builder - OpenGL printing/image


OpenGL is the technology to use for 3D. There are great tutorials and lots of sample code at nehe.gamedev.net.

0

精彩评论

暂无评论...
验证码 换一张
取 消