开发者

Set stage vanishing point in Flash via actionscript 3

开发者 https://www.devze.com 2022-12-17 09:10 出处:网络
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

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 settin开发者_JAVA技巧gs 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!


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消