模型采用obj格式,8万多个面,使用LoaderMax加载资源:
var queue:LoaderMax = new LoaderMax({name:"main",autoDispose:false,onProgress:onProgressHandler,onComplete:onCompleteHandler,onError:onErrorHandler}); queue.append(new DataLoader("fly/fly5.obj",{name:"fly",format:"text"})); queue.append(new ImageLoader("fly/fly-maps.jpg",{name:"fly-map"})); queue.append(new ImageLoader("fly/fly-normalmap.jpg",{name:"fly-normal"})); queue.append(new ImageLoader("fly/fly-specularmap.jpg",{name:"fly-specular"})); queue.append(new ImageLoader("assets/FloorMap.jpg",{name:"floor-map"})); queue.append(new ImageLoader("assets/FloorShadowMap.png",{name:"floor-shadow"})); queue.append(new ImageLoader("assets/marble.jpg",{name:"marble"})); queue.load();
转载请注明:陈童的博客 » Away3d obj格式模型加载与展示