LABS | VIZAR

Vizar Laboratorien

Five3D is now managing Bitmaps

Yes, it’s true my favourite 3D-Engine Five3D is now competing with bitmaps and videos. All you need to do this is grabbing the new 2.1 Package of Five3D and if you plan to build some crazy apps with Flex you have to include the Flash CS3-Classes into your Flex Build Path, because Five3D 2.1 needs to import fl.motion.Color ( don’t ask me why, ask Mathieu)

When you succeded with that step everything is ready for takeoff and you can start. My first try to bring some bitmaps into the vector-world of Five3D is this piece. The inspiration came across by a photo by my buddy Sören Rogoll who take a picture from my closer backyard.

Launch it!

When you click the button and the ships appear, you see bitmaps in Five3D.

var ship:Bitmap3D = new Bitmap3D(new Images.mary().bitmapData);
scene3D.addChild(ship);

This line adds a Bitmap3D into the DisplayList. Now you access to rotationY, rotationX, rotationZ and the z-Index. Combine it with the smooth 3D Vectors. There is a big potencial in Five3D.

3 Comments so far

  1. Buda July 18th, 2008 12:08

    Nice experiment. FIVe3D rocks!

    DO you know how to add a library clip to a SPrite3D? I’m getting funny errors if I try and set Sprite3D as the base class and if I use SPrite2D I don’t get rotationZ etc :(

    Any help much appreciated!

  2. Boris July 19th, 2008 13:26

    have you tried something like that:

    [Embed(source="assets/swf/assets.swf", symbol="linkageID")]
    public static const fromLibrary:Class;

    and then reference to it:

    ship = new Bitmap3D(new Images.fromLibrary().bitmapData);

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

Leave a reply