0

如何使用 Google 地球插件为跑步者制作动画?基本上看起来有可能拿 Monster Milktruck 样品,

http://earth-api-samples.googlecode.com/svn/trunk/demos/milktruck/index.html

并且不只是旋转对象,而是使用 frameend 事件将对象替换为另一个对象(跑步者的下一阶段跑步,例如使用 15 个对象进行一个循环,或者更多以使其流畅)。不过,我还没有看到任何这样的例子。有没有这样的样品可用?我也需要 3D 对象,但技术部分是第一个障碍。

4

2 回答 2

0

I've made a test of a walking animation in the Google Earth plugin, which you can see here: http://chrisdiamanti.com/walk/index.php

There are 16 different dae model files in the complete walk loop sequence, and I'm switching them once per tick. The main problem I've encountered is that all the models and textures are not loaded before the animation begins, so that there is a flashing effect due to missing models and or textures. There is also the problem that the animation runs too quickly when the tick rate increases because of better bandwidth and or lighter processing load.

I understand that Google Earth is not a gaming environment, but I keep wondering if there is some technical hurdle that prevents Google Earth from rendering 3d as beautifully as in games.

于 2011-09-05T00:12:37.710 回答
0

我没有尝试过,但我认为您可以使用基于时间的元素和 kmz 模型来实现这一点。

快速搜索这些术语,这看起来像是一个很好的起点,它建议了在模型之间交换的关键帧方法以及使用 gx:AnimatedUpdate 的方法

http://www.google.com/support/forum/p/sketchup/thread?tid=66bbaf4e91776ead&hl=en

于 2011-02-24T04:40:51.030 回答