简体   繁体   中英

Are there open source implementations of Wavefront OBJ loaders for the iPhone?

I would like to display 3-D models of building interiors in my iPhone application, but they are in Wavefront OBJ format. Is there an open source implementation of a Wavefront OBJ loader that I could use within my application?

Note: I'm the author of this framework.

Rend, my Objective-C based OpenGL ES 2.0 framework contains an Wavefront OBJ loader. The class is called REWavefrontMesh.

http://github.com/antonholmquist/rend-ios/blob/master/Classes/REWavefrontMesh.h http://github.com/antonholmquist/rend-ios/blob/master/Classes/REWavefrontMesh.m

Both Bill Dudney and Jeff LaMarche have implementations of Wavefront OBJ loaders for the iPhone that you should be able to drop into your project. Note, however, that Jeff LaMarche's implementation no longer works on iOS5 , is no longer actively developed, and was never intended as production code .

Additionally, since I originally wrote this, Jonathan Wight has released his TouchOpenGL code, which includes an OBJ loader.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM