Everyday 3D

Creative use of technology // A blog about 3D Flash and Actionscript by Bartek Drozdz

The AS3Dmod tutorial

The AS3Dmod tutorial

I did some research in the blogs and on Twitter, and often when someone mentioned AS3Dmod, the recurring theme was the lack of documentation. Yeah… but creating proper documentation is such a difficult task!

First of all, it’s hard to find enough free time. Then, even if you find some, most of us, including me, will always find it more fun to write code instead. Eventually, I profited of the calmer period in the last 3 weeks and made some progress with that. The result is the AS3Dmod tutorial.

In the tutorial you will find answers to the following topics:

  • how to integrate AS3Dmod with the Flash 3d engines
  • how the modifier stack works
  • how to create and apply modifiers
  • how to animate the modifier properties
  • how to use the collapse feature

Beside the tutorial there are API Docs available for some time now.

Another thing are simple interactive demos for each modifier. So far I created it for one: Skew. You can view it here. The demo allows to see all the properties and features of the modifier in action, instead of explaining it in writing. If this concept gets some positive feedback, I’ll try to do more of those.

Hope you will find all this useful, and remember that feedback is very welcome (and much needed). And of course Happy New Year everyone!

Categories: 3D, Actionscript 3, Away3D, Papervision3D, as3dmod

comments RSS

17 Comments

  1. I tried make something (without success) to some time but the lack documentation, did me give up. AS3DMod is incredible, but without documentation, everything is more hard. Thanks by spent your time making the documentation and your effort at become AS3DMod more accessible to others developers. I go try once again, and you can wait my feedback certainly.

    Happy new year.

  2. Outstanding. AS3Dmod is really incredible.

  3. Great, i bet people will love that ! Thanks for your time and work on this.

    I made a simple thing some time ago: [url] http://www.flashbookmarks.com/demos/paperspectrum2/ [/url]

  4. AS3Mod looks really powerful and examples like this make me very keen to try it. Keep up the good work.

  5. Rafael Lima

    OMG!!! Nice job, LOL

  6. You can see some easy sample code here too! http://blog.reyco1.com/applying-modifiers-to-3d-objects-in-papervision3d-using-as3mod/

  7. it’s really cool. But I cant find any sources with applied bitmap textures.

  8. Steff

    Very nice. Thank you!

  9. @Anton Bodrichenko If you want to use bitmap textures just apply BitmapMaterial to the plane in the example and eveything else works exactly the same way.

    Go here for a very good overview of materials in Papervision:
    http://www.insideria.com/2008/05/textures-wireframe-bitmap-movi-1.html

  10. Thanks for reply. I will try

  11. As I said at http://makc3d.wordpress.com/2008/10/16/modding-boobs/ using as3dmod is ridiculously simple. I dont take “lack of documentation” as a valid excuse for not playing with it :)

  12. [...] the ability to make use of 3D ActionScript libraries with the Flex 3 SDK, I came across an AS3Dmod tutorial created by Bartek Drozdz of Everyday Flash that uses the PaperVision3D [...]

  13. Awesome work once again :-) easy to use for all of us, even though I have no idea what goes on behind the scenes ;-)

  14. [...] que j’avais vu il y a quelques temps : – Plier un billet avec Papervision3D et AS3dMod – Approche de AS3dMod, vraiment [...]

  15. I can’t tell you enough how cool this library is. Got it up and running in under 10 min and your tutorial was perfect. Keep up the good work!

    @theflashbum

  16. hi I”m new to as3dmod, and I was trying to apply the bend modifier to multiple planes in the flash IDE, I can get it to apply to ONE plane, but not more then one, can anyone help me get over this hump? heres my sample code

    var bitmapData : BitmapData = new logoFeather1(0, 0);
    var leaf1 : BitmapMaterial = new BitmapMaterial(bitmapData);
    leaf1.doubleSided = true;

    var lf1 : Plane = new Plane( leaf1, 53, 168, 10, 10 );
    scene.addChild(lf1);
    lf1.x = -498; //-498
    lf1.y = 400;
    lf1.z = 600;

    var modifierStack = new ModifierStack(new LibraryPv3d(), lf1);
    var bend = new Bend();
    modifierStack.addModifier(bend);

    addEventListener(Event.ENTER_FRAME, loop);

    function loop(e:Event):void
    {
    lf1.rotationY += (viewport.containerSprite.mouseX – lf1.rotationY) * .1;
    lf2.rotationX += (viewport.containerSprite.mouseX – lf2.rotationY) * .1;

    bend.force += (viewport.containerSprite.mouseY / 100 – bend.force) * .3;

    modifierStack.apply();

    renderer.renderScene(scene, camera, viewport);
    }

    //////////////////
    how do I add this plane to the modifier stack as well?
    //////////////////
    var lf2 : Plane = new Plane( leaf2, 53, 168, 6, 6 );
    scene.addChild(lf2);
    lf2.x = -498; //-498
    lf2.y = 400;
    lf2.z = 600;

    thanks for any help in advance, i’ve been stuck on this for days, i’m sure its somthing simple…

  17. Duane

    I find myself taking shots in the dark and a longtime later, finally getting that small effect. Please give us docs!!! This post is understandable, because I find myself faced with the same habitual dilemma often. But we need them. oh pleeeeeaaaassssseee give us better docs.

    AS3dmod is awesome exponentially. Thats why we are starving here for docs. Thanks for the wonderful and hard work. Give an inch and we want a mile. please more docs?

Leave a comment



  • FATC2011


  • FITC2011


  • FITC2010


  • FITC2010