Papervision 轮播
嘿伙计们,我想知道如何创建一个像这样的轮播 此
与 papervision。我创造了一个,但飞机只是一圈一圈地转。我想知道飞机是否有可能保持与链接示例相同的天使。我不希望平面在 y 轴上自行旋转,而只是在 X/Z 轴上围绕中间的物体移动。
我为此使用 FlashBuilder。
Hey guys I was wondering how to create a carousel like
this
with papervision. I created one but the planes just go round and round. I was wondering if it's possible for the planes to keep the same angel as the example of the link. I do not want the plane to rotate itself on the y axis but just move on the X/Z axis just going around an object in the middle.
I am using FlashBuilder for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不需要飞机旋转,则根本不需要 Papervision,我的建议是避免使用它,除非有必要。
在您的示例中,可以使用正弦和余弦函数轻松计算 x 位置和大小。当飞机离我们很远时,还会应用一些模糊滤镜,并且您还必须处理 z 排序 - 也就是说,近距离的物体会渲染在离我们较远的物体之上。
总而言之,这并不比处理 Papervision 更容易,而且您可以更好地对其进行自定义。您将学到有用的技术:)。
If you don't need the planes to rotate you don't need Papervision at all and my advice is to avoid it unless it's necessary.
In your example the x position and size can be easily calculated using sine and cosine function. There is also some blur filter applied when the plane is far from us and you will also have to take care of the z-sorting - that is the close objects are rendered on top of those far from us.
Altogether is't easier than dealing with Papervision and you can customize it much better. And you will learn useful techniques :).