2009年12月7日星期一

Trying Facebook Connect,…

Currently working in facebook connect, try to connect my testing site with the facebook.

and will go ahead on the flash / flex application with FB connect. ( coding with AS 3.0 facebook library)

fb_connect

2009年12月4日星期五

Start with the Flex Builder & testing papervison performance.

flex

I start working with the flex MXML language & Flex application development.

Seems that it easy to write some RIA application, an alternative to Flash.

Still working on the papervision .dae format issue, and try to load some complex models,

also try to change materials of a model, and do texture mapping.

2009年12月2日星期三

Tutorial on loading a simple .dae model in papervision :)

after few days trail on the papervision, i success to load the .dae model in a flash app.

test_flash_collada

code :

private var view:BasicView;
        private var matList:MaterialsList;
        private var dae:DAE;
        private var textF:TextField = new TextField();
        public function PV3DAnimation()
        {
            view = new BasicView(600, 400, false, true, CameraType.FREE);
            view.addChild (new StatsView(view.renderer));
            //matList = new MaterialsList();
            //var comp:CompositeMaterial = new CompositeMaterial();
            //var color:ColorMaterial = new ColorMaterial(0x444444);
            //var wire:WireframeMaterial = new WireframeMaterial(0x999999);
            //comp.addMaterial(color);
            //comp.addMaterial(wire);
            //matList.addMaterial(comp, "all");
            dae = new DAE(false);
            dae.scale = 20;
            dae.load("TempRun.xml"/*, matList*/);
            addChild(view);
            textF.width = 200;
            textF.x = 10;
            textF.y = 300;
            textF.textColor = 0xFFFFFF;
            textF.text = "Loading DAE";
            addChild(textF);
            dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, onLoadComplete);
            addEventListener(Event.ENTER_FRAME, onRenderViewport);
            stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
        }

=============================================================