Hi at all,
I am in progress trying to understand Away3D. I have version 3.6 installed.
I tried to import a 3ds-model and add an texture to it. I have the following code:
private function initObjects():void
{
max3ds = new Max3DS();
max3ds.centerMeshes = true;
max3ds.material = Cast.material(outerMaterial);
loader = new LoaderCube();
loader.loaderSize = 200;
loader.addOnSuccess(onSuccess);
loader.loadGeometry("../src/cube.3ds", max3ds);
scene.addChild(loader);
}
But now I have the problem that the texture I want to load is not correctly displayed, online the major colour used in the texture-file.
I guess the problem is, that the texture file is wrong-sized, but I have no idea how to change this.
The second question is how to resize the imported model? Can I give a width and height (maybe size it to 100 in width and 150 in height) to it and then fit my texture to it?
Thank you in advance!
Kind regards
stephan