用于C / C ++的轻量级OBJ网格文件加载器? [英] Lightweight OBJ mesh file loader for C/C++?

查看:126
本文介绍了用于C / C ++的轻量级OBJ网格文件加载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为C或C ++寻找一款简单的轻量级Wavefront OBJ网格文件阅读器。 (例如,给出一个OBJ格式的网格,从文件中读取它,并使其可访问,最好是作为顶点和三角形的列表。)建议?



它不需要支持材质属性或任何其他可能存在的奇特数据 - 只需几何图形就可以。

解决方案

其中有很多: http://www.google.com/codesearch?q=wavefront+obj+loader

这个例子:< href =http://www.google.com/codesearch?hl=ru&q=wavefront+obj+loader&exact_package=http://ftp5.ru.freebsd.org/pub/FreeBSD/distfiles/gl- 117-1.3.2-src.tar.bz2rel =nofollow noreferrer> http://www.google.com/codesearch?hl=ru&q=wavefront+obj+loader&exact_package=http://ftp5 .ru.freebsd.org / pub / FreeBSD / distfiles / gl-117-1.3.2-src.tar.bz2 ;)

Google链接坏了。 CodeSearch已经结束了。改为尝试这些。
主机/搜索
http:// www .google.com / hosting / search?q = wavefront + obj + loader



第二个链接嵌入链接中(该链接仍处于活动状态): http:// ftp5.ru.freebsd.org/pub/FreeBSD/distfiles/gl-117-1.3.2-src.tar.bz2


I'm looking for a simple lightweight Wavefront OBJ mesh file reader for C or C++. (ie. given a mesh in OBJ format, read it in from a file, and make it accessible, preferably as a list of vertices and triangles.) Recommendations?

It doesn't need to support material properties or any other fancy data that might be present - just the geometry is fine.

解决方案

There are plenty of them: http://www.google.com/codesearch?q=wavefront+obj+loader
This one for example: http://www.google.com/codesearch?hl=ru&q=wavefront+obj+loader&exact_package=http://ftp5.ru.freebsd.org/pub/FreeBSD/distfiles/gl-117-1.3.2-src.tar.bz2 ;)

The Google links are broken. CodeSearch was done away with. Try these instead. hosting/search http://www.google.com/hosting/search?q=wavefront+obj+loader

The second link had this embedded in the link (that link is still active): http://ftp5.ru.freebsd.org/pub/FreeBSD/distfiles/gl-117-1.3.2-src.tar.bz2

这篇关于用于C / C ++的轻量级OBJ网格文件加载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆