Collada 几何和动画文件加载

发布于 2024-10-03 01:45:59 字数 172 浏览 15 评论 0原文

我正在考虑编写一个用于几何和动画的 Collada 加载器。有人可以从高层次描述如何做到这一点吗?如果需要的时间超过几个周末,我可能会改变策略,所以我会尝试了解这涉及到什么。我尝试阅读 Collada 动画规范,但一旦它开始讨论不同的动画通道,我就不明白了。

我没有使用任何游戏引擎。我直接与 OpenGL 交互。

I'm considering writing a Collada loader for geometry and animation. Could someone describe from a high level how this would be done? If it will take longer than a few weekends of time I may switch strategies so I'm trying to get a feel for what this involves. I tried to read the Collada spec for animation but I didn't understand once it started talking about different animation channels.

I'm not using any game engine. I'm interfacing directly with OpenGL.

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

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

发布评论

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

评论(1

梦幻的心爱 2024-10-10 01:45:59

我现在正在学习 Collada。似乎很快就完成某些部分并非不可能,但实现整个功能集却是相当困难的。有一些库,例如 OpenAsset 导入库,但对于 iPhone 来说有点重量级,我还没有没有测试过。该代码可能具有足够的可移植性,您可以毫不费力地获取 Collada 部分。

如果您要自己解析它,我推荐这个 XML 解析器 我刚刚从这个问题中读到。它非常小,速度很快可以与 iPhone 配合使用,看起来在其他项目中也很有用。

I am just now learning Collada. It seems it is not impossible to get some parts up soon but to implement the entire capability set is quite a handful. There are a few libraries like OpenAsset Import Library, but for the iPhone that is somewhat heavy-weight and I haven't tested it. The code is probably portable enough that you could grab the Collada portion without too much trouble.

If you are going to parse it in yourself, I'd recommend this XML parser which I just read about from this question. It is very small, fast and works with iPhones and looks to be useful in other projects as well.

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