I am looking at the official example code of away3d 4 , I just wonder how the scale number comes out , should I just try to reset them and test in the final result and modify a bit and retest again ?
Or there’s some value cross reference table for 3dmax,maya,blender,etc
private function initObjects():void
{
light = new DirectionalLight(-1,-1,-1);
direction = new Vector3D(-1,-1,-1);
scene.addChild(light);
assetLoaderContext = new AssetLoaderContext();
assetLoaderContext.mapUrlToData('texture.jpg',new AntTexture());
loader = new Loader3D();
//todo:how can I know the scale
loader.scale(300);
loader.z = -200;
loader.addEventListener(AssetEvent.ASSET_COMPLETE,onAssetComplete);
loader.loadData(new AntModel(),assetLoaderContext);
scene.addChild(loader);
//todo:add ground
groundMaterial = new BitmapMaterial((new SandTexture()).bitmapData);
groundMaterial.lights=[light];
groundMaterial.specular = 0;
groundMaterial.shadowMethod = new FilteredShadowMapMethod(light);
ground = new Plane(groundMaterial,1000,1000);
scene.addChild(ground);
view.height = stage.stageHeight;
view.width = stage.stageWidth;
}