Away3d obj格式模型加载与展示

三维网站 everyinch 3847℃ 0评论

模型采用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格式模型加载与展示

喜欢 (1)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
'; } if( dopt('d_footcode_b') ) echo dopt('d_footcode'); ?>