问题
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