I read any topics about loading *.3DS models in Away3D. For exaple :
public function loadModel(product:String):void
{
Loader3D.enableParser(Max3DSParser);
_loader = new Loader3D();
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onModelLoaded);
_loader.scale (10);
_loader.load(new URLRequest(product));
}
private function onModelLoaded(e:LoaderEvent):void
{
conteiner.addChild(_loader);
var mat:ColorMaterial;
mat = new ColorMaterial(0xCCCCCC, 1);
//mat.lights = [_light];
var i:int;
var mesh:Mesh;
var numChil:uint = _loader.numChildren;
for (i = 0; i < numChil; ++i)
{
mesh = Mesh(_loader.getChildAt(i));
//INSERT YOUR OWN CODE FOR MATERIAL, CHOOSE AFTER NAME, ETC.
mesh.material = mat;
}
}
But in this case I’ve got to resize sides of texure images to 2^n px. and move they into “bin” folder of project. But in FlashPlayer window my model without textures…
Is there more simply approach to load model from 3Ds MAX 2011 to Away3D 4.0.9 ?
P.S.: sorry for my english.