The following code can be used to load a 3D model designed from Google sketchup tool, to load in to an ActionScript on Adobe Flex application on Flex builder
var myModelDisplayObject3D :DisplayObject3D = new DisplayObject3D();
[Embed(source="assets/Rack2.dae", mimeType="application/octet-stream")] private var MyModel:Class;
var myModel:MyModel= new MyModel();
var myModeldae:DAE = new DAE();
var myModelMaterialList:MaterialsList = new MaterialsList();
myModeldae.load(XML( new myModel() ), myModelMaterialList );
myModelDisplayObject3D = scene.addChild( myModeldae);
light.lookAt(myModelDisplayObject3D );
Subscribe to:
Post Comments (Atom)
Beyond Toughness: Why Your Car's Brain Needs AEC-Q100 AND ASIL-B
AEC-Q100 vs. ASIL-B: Quality Meets Safety In the era of autonomous driving and electric vehicles, the electron...
-
This will create a certification file and send to free certification authority " https://certbot.eff.org " sponsored by linux foun...
-
Annual Technical Conference 2006 of IET-YMS Sri Lanka, 16 th October 2010 Department of Electrical and Information Engineering, University ...
-
Installing MPICH2 parallel computing from package manager or Ubuntu software center, will need lot configurations of available real processo...
[Embed(source="assets/Rack2.dae", mimeType="application/octet-stream")] private var MyModel:Class;
ReplyDeletecode is to load the model object on /src/assets folder of the source files(/src). Most impotent thing is this will embed the object file in to flash file. so no need to carry the model file with it separately.