lightwave 3d 9.6 sdk 问题
SDK 是否有关于如何创建导出插件(从场景中提取多边形)的教程(或至少有一个示例)?
Are there tutorials for the SDK (or at least an example), about how to create an export plugin (extract polygons from scene)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Lightwave 中,您不必编写导出插件来从场景/对象中提取多边形:LWO 和 LWS 已记录(足以)可以轻松解析它们。
文件格式文档位于 SDK 的
filefmts
文件夹中。您还可以找到解析 Lightwave 文件的库,例如打开资源导入库。如果您仍然需要将其作为插件来执行,可以在
sample/Modeler/Input-Output/vidscape
文件夹中找到 Modeler 的示例插件。In Lightwave, you're not forced to write an export plugin to extract the polygons from a scene/object : the LWO and LWS are documented (enough) to parse them quite easily.
The file formats documentation are in
filefmts
folder of the SDK. You can find libs that parse Lightwave files also, such as Open Asset Import library.If you still need to do it as a plugin, there's a sample plugin for Modeler, in the
sample/Modeler/Input-Output/vidscape
folder.您可以在网络上找到合理数量的 LW 导出插件。其中一些是编译的
.p
插件,但有些是 Python.py
或 LScript*.ls
。后者可以使用您选择的文本编辑器轻松地根据个人需求进行编辑和调整。网络上也有关于脚本中可用的 Lightwave API 命令的 wiki。
You can find a reasonable amount of LW export plugins on the web. Some of them are compiled
.p
plugins, but some are Python.py
or LScript*.ls
. Two latter can be edited and tweaked with text editor of your choice to individual needs quite easily.There are wikis on the web about Lightwave API commands available from script as well.