FIVe3D: Bitmap treat

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:

Loading Flash ...

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.

2 comments to "FIVe3D: treat Bitmap"

  1. August 30, 2008 Mathieu Badimon | FIVe3D | Blog »Blog Archive» FIVe3D: Bitmap treat:

    [...] Direct link: click here [...]

  2. March 20, 2009 Papervision3D: Bitmap handle like FIVe3D | Undolog.com :

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

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Stop SOPA