Well it's still not working.

Are you sure you tried with redalert.dae ? Because the authoring tool
is COLLADA Maya2009.

On Jul 24, 6:34 am, katopz <[email protected]> wrote:
> it's seem to be <authoring_tool>Google SketchUp 7.0.8657</authoring_tool>
> not Maya isn't it? ;)
> btw i think your dae is work fine, it's just over size and render out of the
> view so you can try add
>
> view.camera.z = 20000;
>
>
>
> i see big head spinning there
>
> hth
>
> 2009/7/24 fdb <[email protected]>
>
>
>
>
>
> > You can find the sources : redTexture.jpg  and redalert.dae on the
> > Files page.
>
> > I use this AS file :
>
> > package
> > {
> >        import away3d.animators.SkinAnimation;
> >        import away3d.containers.ObjectContainer3D;
> >        import away3d.core.utils.Debug;
> >        import away3d.events.LoaderEvent;
> >        import away3d.loaders.Collada;
> >        import away3d.loaders.Object3DLoader;
> >        import away3d.loaders.data.AnimationData;
> >        import away3d.test.SimpleView;
>
> >        import flash.utils.getTimer;
>
> >        [SWF(backgroundColor="0xFF00FF", frameRate="30", width="800",
> > height="600")]
>
> >        /**
> >         *
> >         * Away3D Collada Animation
> >          * @author [email protected]
> >          *
> >         */
> >        public class ExColladaAnimation extends SimpleView
> >        {
> >        private var skinAnimation:SkinAnimation;
>
> >        public function ExColladaAnimation()
> >        {
> >                // just title
> >                super("Animation","Collada Animation Example by
> > katopz");
> >        }
>
> >        override protected function create() : void
> >        {
> >                        // for debug lover
> >                        Debug.active = true;
>
> >                        // load and wait...
> >                        var loader:Object3DLoader = Collada.load("../
> > assets/redalert.dae");
> >                        loader.addOnSuccess(onLoaderSuccess);
> >                        view.scene.addChild(loader);
> >        }
>
> >                private function onLoaderSuccess
> > (event:LoaderEvent):void
> >                {
> >                        // camera auto lookAt target in simple view
> >                        target = ObjectContainer3D
> > (event.loader.handle);
> >            skinAnimation = (target.animationLibrary["default"] as
> > AnimationData).animation as SkinAnimation;
>
> >            // fun!
> >                        start();
> >                }
>
> >        override protected function draw() : void
> >        {
> >                // rotate around
> >                view.scene.rotationY+=Math.PI/10;
> >                view.camera.lookAt(target.position);
>
> >                // update animation
> >                skinAnimation.update(getTimer()/1000);
> >        }
> >        }
>
> --
> katopzhttp://www.sleepydesign.com

Reply via email to