2010年12月29日星期三

翻译

Panda3D 使用的模型文件格式叫做 egg 。您需要使用建模软件(比如 3D Studio Max、Blender、Maya)之中的一款,配合相应的导出插件或是文件格式转换工具。后面将会详细介绍。Panda3D 也支持能够快速载入的 bam 格式的二进制文件。

主旨:

"Panda3D uses a custom file format for its models, called egg. To create an egg file, you will need to use a modeling program (like 3D Studio Max, Blender or Maya) combined with either an export plugin or a file format converter. You can read more about this process in the following sections. Panda3D also provides a binary file format bam, which is quicker to load."
- Panda3D Manual (查看 Google 边栏评注)

翻译

注意:一个 bam 文件只对应一个版本的 Panda3D ,而 .egg 文件可以在任何版本的 Panda3D 下工作。所以我们不建议在开发时使用 bam 文件,bam 文件适合交给最终用户。

主旨:

"CAUTION: A BAM file only functions with the one version of Panda3D that created it! By contrast, EGG files will work with any version of Panda3D. Because of this, is is NOT recommended that you use BAM files for your day-to-day development. They should only be used when shipping to customers."
- Panda3D Manual (查看 Google 边栏评注)

翻译

如果您想将游戏交给您的客户,这个方法就不太好了。您不能让客户在第一次载入游戏时等得太久。这是您可以使用像 egg2bam 或是 packpanda 这样的程序转换 .egg 文件。

主旨:

"However, there is one situation where this doesn't work so well: if you are shipping your game to a customer. You don't want your customer's first experience with your game to have delays caused by egg file loading. In that case, it may make sense to ship BAM files instead of EGG files to the user. To do this, you would use a tool like egg2bam or packpanda to convert your EGG files into BAM files manually."
- Panda3D Manual (查看 Google 边栏评注)

翻译

这是因为 Panda3D 在第一次载入 .egg 文件时,会将它翻译成在速度方面进行优化了的 bam 文件。这些 bam 文建会背包存在一个目录中。当您开发一款游戏时,这个功能很重要:如果您载入模型时速度很慢,证明这是第一次载入这个模型,否则速度会很快的。

主旨:

"This is possible because Panda3D is quietly translating the EGG file into a performance-optimized form: the BAM file. It stores these BAM files in a directory called the model cache. When developing a game, this works great: the only time you notice a delay is if you just created the EGG file for the first time. Otherwise, it runs blazing fast."
- Panda3D Manual (查看 Google 边栏评注)

翻译

.egg 文件可以方便地用来调试程序,但它的速度不快。第一次载入一个 .egg 文建会很慢,然而再次载入就很快了。

主旨:

"The EGG file is optimized for debugging, not speed. The first time you load an EGG file, it loads slowly. However, the second time you use that same EGG file, it loads fast."
- Panda3D Manual (查看 Google 边栏评注)

翻译

我们不建议将 actor 和 animation 打包进同一个 .egg 文件,这样会使开发人员感觉混乱。

主旨:

"It is not recommended to pack both an actor and an animation into an EGG file: this tends to result in developer confusion."
- Panda3D Manual (查看 Google 边栏评注)

翻译

.egg 文件可以由3D建模软件导出,像是 Maya、Max、Blender 。一般情况下,Maya 的支持比较好,Panda3D 的开发人员经常使用 Maya (教程的翻译经常使用 Blender)。现在由 Max 导出模型还不是很稳定。还有 Blender,据说它很好用。

主旨:

"EGG files are created by exporting models from 3D modeling programs like Maya, Max, or Blender. Currently, the support for Maya is very strong, since the developers of Panda3D mostly use Maya. The Max exporter is not very reliable right now. There is a third-party exporter for Blender, which is said to be quite good."
- Panda3D Manual (查看 Google 边栏评注)

关注者