2012-11-28 51 views
2

我試圖讓該對象是否具有原始素材及補充一點,我在場景中的定向光:奇怪線的Away3D材料

protected function onMeshComplete(event:AssetEvent):void { 

    if (event.asset.assetType == AssetType.MESH) { 
     myMesh = event.asset as Mesh; 
     for each (var m:SubMesh in myMesh.subMeshes){ 
      var mat:MaterialBase = m.material; 
      mat.lightPicker = staticLightPicker; 
      m.material = mat; 
     } 
    } 

} 

結果,不出所料,我有原來的材料和定向燈。但我的問題是,我有一些奇怪的線條,如下圖所示。

enter image description here

它是我的代碼的問題? Away3D代碼?或3D模型? 謝謝!

回答

3

正如Fabrice Closier向我解釋的,修復方法是對材質使用repeat:true。 以下是他給出的完整答案:

這並不奇怪。因爲你的模型的uv值低於或超過0-1。你需要設置重複:對你的材料真實。您看到的線是您的地圖的像素(在這種情況下是默認引擎位圖數據)被拉伸。

Here is the link.

謝謝你,法布里斯,非常感謝!