With the release 2.1 of FIVe3D you can also manipulate objects Bitmap , so as to overcome the initial limitation of this library only vector. e ruotarlo a nostro piacimento: If we include a Bitmap in the library and esprotiamo to be able to create an instance dynamically using ActionScript, you can easily create an object Bitmap3D and rotate at will:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | display .*; five3D imports. .* display; / / Scene3D = new Scene3D ( ) ; var __scene: Scene3D Scene3D = new (); = stage . stageWidth / 2 ; __scene. x = internship. stageWidth / 2; = stage . stageHeight / 2 ; __scene. y = internship. stageHeight / 2; ; // 1000 default __scene. viewDistance = 800 / / default 1000 __scene ) ; addChild (__scene); / / Export a Bitmap nominadola myimage Bitmap3D = new Bitmap3D ( new myimage ( 256 , 256 ) ) ; __bmp var: = new Bitmap3D Bitmap3D (new myimage (256, 256)); = 20 ; __bmp. x = 20; = - 100 ; __bmp. y = - 100; ; __bmp. z = 0; ; __bmp. flatShaded = false; ; __bmp. singleSided = false; = true ; __bmp. smoothing = true; ( __bmp ) ; __scene. addChild (__bmp); / / addEventListener ( Event . ENTER_FRAME , onEnterFrame ) ; this. addEventListener ( Event . ENTER_FRAME, onEnterFrame); e : Event ) : void { function onEnterFrame (e: Event ): void { __bmp. rotationY + +; } |
esportata. Where myimage is the name of the Bitmap exported. e flatShaded , tutte da provare! Note the properties smoothing , singleSided and flatShaded , all to try! In fact you do not understand why the author has never published the library without documentation! The only flaw of this project! I personally would have expected to have a minimum of documentation, even to entice the use of this versatile product.










[...] Direct link: click here [...]
[...] The example shown in FIVe3D: Bitmap treat, let's see how to achieve the same effect using Papervision3D 2.0 (Great White), so [...]