Black & White Stripe texture on 3DS model

Software: Away3D 4.x

markval, Newbie
Posted: 11 October 2011 10:35 PM   Total Posts: 7

HI guys,

Just wondering if anyone encountered this before.

really simple there and pretty much same as example :

light = new DirectionalLight(-1, -11);
   
direction = new Vector3D(-1, -11);
   
   
scene.addChild(light);
   
   var 
assetLoaderContext:AssetLoaderContext = new AssetLoaderContext();
   
assetLoaderContext.mapUrlToData("LOGO_TEX.PNG", new 3DSmodel());
   
   
loader = new Loader3D();
   
loader.scale(300);
   
loader.rotationY 180;
   
loader.addEventListener(AssetEvent.ASSET_COMPLETEonAssetComplete);
   
loader.loadData(new AntModel(), new Max3DSParser(), assetLoaderContext);
   
   
scene.addChild(loader);

/////////////

 
private function onAssetComplete(event:AssetEvent):void
  {
   
if (event.asset.assetType == AssetType.MESH{
    
var mesh:Mesh event.asset as Mesh;
    
mesh.castsShadows true;
   
else if (event.asset.assetType == AssetType.MATERIAL{
    
var material:BitmapMaterial event.asset as BitmapMaterial;
    
material.shadowMethod = new FilteredShadowMapMethod(light);
    
material.lights [light];
    
material.gloss 30;
    
material.specular 1;
    
material.ambientColor 0x303040;
    
material.ambient 1;
   
}
  } 

The 3DS loads perfectly but the texture is made of White&BlackStripe;
Output from 3DSmax 2012..

Cheers smile

   

markval, Newbie
Posted: 11 October 2011 10:46 PM   Total Posts: 7   [ # 1 ]

forget this… Chrome had me with no debugger player and texture wasnt in a power of 2.
tx anyway for reading this.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X