有没有适用于 Android OpenGL ES 的多边形三角测量工具?

发布于 2024-12-09 07:01:43 字数 335 浏览 0 评论 0原文

我正在尝试构建我的新 Android 游戏。我浏览了 opengl es 1.1 的教程和许多有关 opengl es 1.1 的网站。我了解到opengl es中的渲染只能是点、线和三角形。

就概念而言,这看起来是正确的。但我想知道我是否必须为我的游戏构建一个角色,我需要做很多工作来将角色转换或分割成很多三角形。我想知道是否有类似 google sketchup 之类的工具可以帮助我构建 3d 对象并为我提供三角形列表,帮助我使用 opengl es 在 android 中重现相同的图像?有没有办法解决这个问题。 请帮助我提供您认为对我将 3D 模型分解为具有正确顶点的三角形列表有帮助的任何信息。 非常感谢您的时间和帮助。

I am trying to build my new android game. I went through the tutorials of opengl es 1.1 and many web sites about opengl es 1.1. I got to know that the rendering in opengl es is only by point, line and triangles.

Concept wise this looks right. But I was wondering if i have to build a character for my game I need to do a lot of work in converting or splitting up the character into lot of triangles. I was wondering if there is a tool something like a google sketchup that will help me build 3d objects and give me the list of triangles that will help me reproduce the same image in android with opengl es? is there a way out for this.
Please help me with any kind of information that you feel will be helpful for me in this regards of breaking a 3D model into a list of triangles with proper vertices.
Thank you very much for your time and help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

踏雪无痕 2024-12-16 07:01:43

大多数 3D 建模工具将其网格存储到三角形列表中,但通常采用自己的自定义格式。幸运的是,有一些格式很容易编写解析器导入到 OpenGL | ES 中。

由于大多数工具都需要付费版本,因此我建议使用免费版本,例如 blender 并导出模型选择使用 wavefront 格式,给你一个顶点列表,纯文本或原始格式的法线、纹理坐标等,它只是将所有顶点转储到文件中。

无论哪种方式都需要一些代码来加载文件并放入正确的格式来呈现它,但网络上有大量资源说明如何执行此操作。

Most 3D modelling tools store their meshes into a list of triangles, but usually into their own custom format. Fortunately there are a few formats that are very easy to write a parser to import into OpenGL|ES.

Since most tools require a paid version, I would advise to go with a free one, like blender and export the model of choice using wavefront format, that gives you a list of vertices, normals, texture coordinates, etc in plain text or raw which just dumps all the vertices into a file.

Either way will require a bit of code to load the file and put into the right format to render it, but there are plenty of resources on the web of how to do it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文