使用OpenGL-ES 3D CAD模型 [英] 3D CAD models with OpenGL-ES

查看:511
本文介绍了使用OpenGL-ES 3D CAD模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作导入三维CAD模型到我的iOS应用程序,但有一个很难搞清楚的限制是IM,讲的顶点和曲面的数量。

我有一个模型,其中有:

  • 面:41525
  • 顶点:21504

基本上世界上没有限制,但它实际上采取2小时将其加载到我的iOS应用程序。

我一直没能找到减少这种模式不破坏太多的好方法,因此即时通讯非常绝望听到这怎么可能。

我的模型AC3D和STEP格式。

我试图通过AC3D减少多边形,但它看起来灾难性到底。

解决方案

有没有正规的限制,你实际上得到的吞吐量将取决于你如何聪明地能够选择要画什么,你想要什么样的表面样的影响申请等。

这一切都这样说,窥视到STEP文件显示它是用于交换的纯ASCII格式。两个小时是如此过度的建议超出分析的东西,一些相当重大的潜在的性能问题,但你一定要考虑至少tokenising文件,包括它的应用程序之前。

OBJ是另一种ASCII格式,而且我发现根本tokenising在Mac上的文件,然后在加载应用程序中的标记化版本降低一个20多岁的模型负荷下降到不足1秒。切换到二进制格式的OBJ兼容性没有pretensions(这样我就可以pre-stripify,除其他事项外)切断负载时进一步加剧。

I am working on importing an 3D CAD model into my iOS application, but im having a hard time figuring out where the restriction is, speaking of amounts of vertices and surfaces.

I have a model which has :

  • surfaces: 41525
  • vertices: 21504

Essentially theres no restriction, but it actually took 2hours to load it into my iOS App.

I have not been able to find a good way to reduce this model without damaging too much, so im quite desperate to hear how this is possible.

I have the model in AC3D and STEP format.

I tried to reduce polygons through AC3D but it looks catastrophic in the end.

解决方案

There's no formal restriction, and the throughput you actually get will depend on how intelligently you're able to pick what to draw, what sort of surface effects you want to apply, etc.

That all being said, peeking into a STEP file reveals it to be a pure-ASCII format for interchange. Two hours is so excessive as to suggest some fairly major underlying performance issue beyond the stuff of parsing but you should definitely consider at least tokenising the file before including it in the app.

OBJ is another ASCII format, and I found that simply tokenising the file on the Mac and then loading the tokenised version in app reduced a 20s model load down to less than 1s. Switching to a binary format with no pretensions of OBJ compatibility (so that I could pre-stripify, amongst other things) cut the load time even further.

这篇关于使用OpenGL-ES 3D CAD模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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