PV3D使用DAE

在pv3d中使用DAE很方便。
_viewPort = new Viewport3D(425,280);
      addChild(_viewPort);
      _scene = new Scene3D();
      _camera = new Camera3D();
      _render = new BasicRenderEngine();
     
      var _materials:MaterialsList = new MaterialsList();
      _materials.addMaterial(new BitmapFileMaterial("textures/bbattle.jpg"), "arrowMaterial3");
      _dae = new DAE();
      _dae.addEventListener(FileLoadEvent.LOAD_COMPLETE, onloadCompleteHandler);
      _dae.addEventListener(FileLoadEvent.LOAD_ERROR, onloadErrorHandler);
      _dae.load("meshes/cube.dae", _materials);
我的网站设计 web design home page
http://www.webdesign-cn.com
http://www.webdesign-china.cn

你可能感兴趣的:(Web)