2010年12月29日星期三

翻译

如果您想将游戏交给您的客户,这个方法就不太好了。您不能让客户在第一次载入游戏时等得太久。这是您可以使用像 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 边栏评注)

翻译

下面这段教程假设您有含有一个可以活动的 model 的 .egg 文件,并且有一些附带活动信息的 .egg 文件。希望了解如何生成含有 model 的 .egg 文件,请浏览导出 model 。

主旨:

"The following sections of the manual assume that you have a valid egg file which has an animatable model, and some additional egg files containing animations. To learn how to convert a model into an egg file see the Model Export section."
- Panda3D Manual (查看 Google 边栏评注)

翻译

许多游戏引擎都提供了从高度图生成地形的工具。Panda3D 也能从高度图中生成地形,这里有关于地形的详细信息。对于一些简单的地形,更多的人喜欢用 model 来代替高度图。

主旨:

"Many engines provide tools to create terrain, and store that terrain into heightmap images. Panda3D can generate geometry for kind of heightmap terrains, refer to the Terrain section for more information. For many simple terrains, though, many people prefer to use a static model rather than a heightmap image."
- Panda3D Manual (查看 Google 边栏评注)

关注者