2010-08-10 57 views
0

我不能紋理應用到對象,我不知道爲什麼......不能申請材料到* .OBJ在Away3D中

(AS3攪拌機導出腳本以及COLLADA導入工作不適合我 )

任何想法?

var loader:Loader3D = new Loader3D(); 
loader.addEventListener(Loader3DEvent.LOAD_SUCCESS, 
handler_loadSuccess); 
var parser:Obj = new Obj(); 
loader.loadGeometry("assets/objects/Test.obj", parser); 

private function handler_loadSuccess(event:Loader3DEvent):void 
{ 
     trace("Success"); 
     mat = new ColorMaterial(0xFFFFFF); 
     var mesh:Mesh = event.loader.handle as Mesh; 
     mesh.material = mat; 
     mesh.scale(40) 
     mesh.x = 300; 
     viewport.scene.addChild(mesh); 
} 

回答

0

好吧,

我通過應用材料到所有subfaces解決了這個。