简体   繁体   English

是否有针对iPhone的Wavefront OBJ加载器的开源实现?

[英]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. 我想在我的iPhone应用程序中显示建筑物内部的三维模型,但它们采用Wavefront OBJ格式。 Is there an open source implementation of a Wavefront OBJ loader that I could use within my application? 是否有我可以在我的应用程序中使用的Wavefront OBJ加载器的开源实现?

Note: I'm the author of this framework. 注意:我是这个框架的作者。

Rend, my Objective-C based OpenGL ES 2.0 framework contains an Wavefront OBJ loader. Rend,我的基于Objective-C的OpenGL ES 2.0框架包含一个Wavefront OBJ加载器。 The class is called REWavefrontMesh. 该类称为REWavefrontMesh。

http://github.com/antonholmquist/rend-ios/blob/master/Classes/REWavefrontMesh.h http://github.com/antonholmquist/rend-ios/blob/master/Classes/REWavefrontMesh.m 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. Bill DudneyJeff LaMarche都为iPhone设计了Wavefront OBJ加载器,您应该可以将其放入项目中。 Note, however, that Jeff LaMarche's implementation no longer works on iOS5 , is no longer actively developed, and was never intended as production code . 但请注意,Jeff LaMarche的实现不再适用于iOS5不再积极开发,并且从未打算作为生产代码

Additionally, since I originally wrote this, Jonathan Wight has released his TouchOpenGL code, which includes an OBJ loader. 此外,自从我最初写这篇文章以来,Jonathan Wight发布了他的TouchOpenGL代码,其中包括一个OBJ加载器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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