HI guys,
Just wondering if anyone encountered this before.
really simple there and pretty much same as example :
light = new DirectionalLight(-1, -1, 1);
direction = new Vector3D(-1, -1, 1);
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_COMPLETE, onAssetComplete);
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