Set stage vanishing point in Flash via actionscript 3

此生再无相见时 提交于 2020-01-03 16:44:03

问题


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!


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/2104652/set-stage-vanishing-point-in-flash-via-actionscript-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!