actually i mean compare "dae" file not "as" file ;)

On 24/07/2009, fdb <[email protected]> wrote:
>
> Hi,
>
> I found the line responsible by comparison : skinAnimation =
> (target.animationLibrary["default"] as AnimationData).animation as
> SkinAnimation;
>
> Thanks again.
>
> On 24 juil, 10:25, fdb <[email protected]> wrote:
>> Ok I try this plug in. Thank you for your time and your help !
>>
>> On 24 juil, 10:09, katopz <[email protected]> wrote:
>>
>> > i'm try your 1st mail :)
>> > see result
>> > herehttp://sleepydesign.com/labs/as3/Away3D/HelloCollada/ExCollada.html
>>
>> > and for file attach last mail should be another problem
>> > btw i did import your dae to Maya8.5 and export back and here is
>> > resulthttp://sleepydesign.com/labs/as3/Away3D/HelloCollada/ExCollada2.html
>>
>> > here's
>> > codehttp://sleepydesign.com/labs/as3/Away3D/HelloCollada/ExCollada.zip
>>
>> > so problem is what plug-in you use there?
>>
>> > here is plug-in in i
>> > usedhttps://collada.org/mediawiki/index.php/ColladaMaya_NextGen
>>
>> > so...can you try again with this plug-in? and see if it work or not
>>
>> > and if not try compare with text compare program to investigate what so
>> > diff
>> > about 2 file
>> > and try fix in parser if you can, and summit your fix to us would be
>> > nice,
>> > if not...you have to wait for me to do that :)
>>
>> > best
>>
>> > 2009/7/24 fdb <[email protected]>
>>
>> > > 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
>>
>> > --
>> > katopzhttp://www.sleepydesign.com


-- 
katopz
http://www.sleepydesign.com

Reply via email to