I tried re-working it into flex and I think the example was maybe meant to work on a different version of Away3D than the trunk as SkinAnimation.as is not in the trunk, I tried 3.0 which has this but then Loader3D is not available.
On 9 August 2010 20:40, joeyparcels <[email protected]> wrote: > > I also looked at the example in the trunk. But I cannot get > ExColladaAnimationCS4.fla (...trunk/fp10/Examples/Collada/src/ ) to > compile. I get a whole slew of errors when trying to compile it with > the latest away3d libraries: > > TypeError: Error #1009: Cannot access a property or method of a null > object reference. > at away3d.core.project::PrimitiveProjector/project() > at away3d.core.traverse::PrimitiveTraverser/apply() > at away3d.core.base::Object3D/traverse() > at away3d.containers::ObjectContainer3D/traverse() > at away3d.containers::View3D/render() > > I am simply trying to compile the ExColladaAnimationCS4.fla as is out- > of-the-box, but it doesn't work. Is anyone else having this issue? > > > > On Aug 5, 4:34 am, leerraum <[email protected]> wrote: > > thanks. I'll have a look into the trunk. > > > > On 5 Aug., 07:42, Michael Iv <[email protected]> wrote: > > > > > > > > > I suggest you to see online examples on models loading . Also I guess > there are some also in the trunk examples. You in your code have made half > of the job. Loading is an asynchronous process, as such you have to handle > the model only after it has been loaded. > > > > > Sent from my iPhone > > > > > On Aug 4, 2010, at 9:24 PM, leerraum <[email protected]> > wrote: > > > > > > Hi, > > > > > > I'm trying to load acolladafile into a swf withaway3d3.5. I don't > > > > have the slightest clue why it doesn't work. I hope you can help me > > > > with this. > > > > > > My code looks like this and I think I've done everything right. > > > > > > package de.kai_reinhardt > > > > { > > > > importaway3d.materials.ColorMaterial; > > > > importaway3d.primitives.Cube; > > > > import flash.display.Sprite; > > > > import flash.events.Event; > > > > importaway3d.loaders.Collada; > > > > importaway3d.cameras.Camera3D; > > > > importaway3d.containers.View3D; > > > > importaway3d.loaders.Loader3D; > > > > > > /** > > > > * ... > > > > * @author Kai Reinhardt > > > > */ > > > > > > public class Main extends Sprite > > > > { > > > > > > private var view: View3D = new View3D ( {camera:cam } ); > > > > private var l: Loader3D = new Loader3D (); > > > > private var cube : Cube = new Cube (); > > > > private var light : DirectionalLight3D = new > > > > DirectionalLight3D( { color:0xFFFFFF, brightness:.9, specular:.25, > > > > ambient:.8, diffuse:.5 } ); > > > > > > public function Main():void > > > > { > > > > trace("MAIN ENTRY"); > > > > if (stage) init(); > > > > else addEventListener (Event.ADDED_TO_STAGE, init); > > > > } > > > > > > private function init(e:Event = null):void > > > > { > > > > removeEventListener (Event.ADDED_TO_STAGE, init); > > > > > > view.scene.addLight (light); > > > > l =Collada.load ("dingens2.dae"); > > > > view.scene.addChild(l); > > > > //view.scene.addChild (cube); > > > > addChild (view); > > > > view.render(); > > > > } > > > > > > } > > > > > > } > > > > > > But nothing shows up. Whats going wrong? Is it something with the > > > >colladamodel? > > > > > > Thanks! >
