通过actionscript 3在Flash中设置舞台消失点

发布于 2024-08-18 17:50:08 字数 430 浏览 1 评论 0原文

我正在与几位设计师合作,他们每个人都创建了在同一个 Flash 应用程序中使用的 3D 动画(使用 fp 10 功能)。每个 3D 动画都是一个独特的影片剪辑,最终将成为同一 .fla 文件的一部分。

我遇到的问题是每个影片剪辑都是在单独的 .fla 中创建的,并且每个 .fla 对于舞台的消失点都有不同的设置。这意味着将各种 moveiclip 导入到我的库中后,所有视觉资源都不会像其源 .flas 中那样对齐。

好消息是,一次仅显示这些影片剪辑之一,因此我不需要能够拥有多个消失点;我需要做的就是在运行时的各个点以编程方式更改全局消失点。

我应该怎么办?我尝试访问 root.transform.perspectiveProjection.projectionCenter 并动态为其分配新的 Point(x, y) 值,但它们似乎没有任何效果在 3D 影片剪辑上。

谢谢!

I'm working with a few designers, each of whom have created 3D animations (using fp 10 capabilities) for use in the same flash application. Each 3D animation is a unique movieclip that will ultimately be part of the same .fla file.

The problem I'm having is that each of the movieclips was created in a separate .fla, and each .fla had different settings for the vanishing point for the stage. This means that after importing the various moveiclips into my library, none of the visual assets are aligned as they were in their source .flas.

The good news is that only one of these movieclips is displayed at a time, so I don't need to be able to have multiple vanishing points; all I need to do is change the global vanishing point programmatically at various points during runtime.

What should I do? I've tried accessing root.transform.perspectiveProjection.projectionCenter and dynamically assigning it new Point(x, y) values, but they don't seem to be having any effect on the 3D movieclips.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凝望流年 2024-08-25 17:50:09

每个剪辑都可以有自己的消失点,请尝试检查其影片剪辑实例的该值 (transform.perspectiveProjection.projectionCenter)

Each clip can have it's own vanishing point, try checking what the instances of their movieclips has for that value (transform.perspectiveProjection.projectionCenter)

别再吹冷风 2024-08-25 17:50:09

使用 localToGlobal 来计算每个不同影片剪辑的新点怎么样?

How about using localToGlobal to calculate the new point for each of the various movieclips?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文