In my previous post i mentioned the FileLoadEvent, i wanna check this a bit closer, cause not all  FileLoadEvents can be used with either the Dae.as or the Collada.as PV3 class.
Lets try to understand the name definitions around Collada:

Digital Asset Exchange for Interactive 3D = .DAE

Collada is the name and dae the file extension!

Why does Papervision has 2 Parser classes for Collada: Collada.as and Dae.as?

In the early papervision days there was Collada.as, then Tim Knip wrote Dae.as which can also handle animations and is based on ASCollada. Which class one uses is, as long as animation is not required, a question of taste. My taste is Dae.as cause i can load my dae models as ByteArrays without any further workaround, and i can load my materials and add them, or change them, or…

  • Dae.as
    var dae:Dae = new Dae(autoPlay:Boolean=true, name:String=null, loop:Boolean=false);
    dae.load("pathTo.dae") // notwendig zum Laden 
    
    
  • Collada.as
    var collada:Collade = new Collada(COLLADA:"pathTo.dae"=null, materials:MaterialsList=null, scale:Number=1,doubleSided:Boolean=false);
    
    

    Both classes listen to the FileLoadEvent, but not both to all Events.

    Dokumentation

    The FileLoadEvent listens on 7 Events, included 2 Error Events, which i dont explain further.

  • LOAD_COMPLETE and LOAD_PROGRESS, for DAE and COLLADA.
  • LOAD_COMPLETE fires, when loading is completly done – this includes also material for DAE, if set in the model like explained in my previous post..
  • COlLADA listens to COLLADA_MATERIALS_DONE on loading of the material if set in the model like explained in my previous post.
  • ANIMATION_COMPLETE and ANIMATION_PROGRESS if the DAE model includes animations, cause loading animations requires a bit more time..
  • Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

     
    Get Adobe Flash player