I was playing around with Flash Player 10 3D capabilities yesterday and thought it was worth posting how to set the Stage vanishing point (as it’s not that well documented). The vanishing point is set to the top left corner of the stage by default. The below code set’s it to the center of the stage:
root.transform.perspectiveProjection.projectionCenter = new Point(stage.stageWidth * .5, stage.stageHeight * .5);
Great tip! Thank you
8 Aug 2010glad i remembered who and where this was posted!
+1 saved ass…
cheers.
6 Jul 2010That’s a great bit of code that is very useful to create a more believable environment when you’re dealing with a lot of 3D elements. Thanks for posting that.
13 Feb 2010