Hey, jbraccini.
Im a newbie on Away3D but what I did (based on my searchs through the web) is:
The “aspect” of your elements on screen is a mix of three things:
Camera zoom
Camera focus
Elements distance from camera.
So start with this values:
camera.zoom = 10;
camera.focus = 100;
and the objects/primitives on scene 900 pixels away from the camera.
So, you can set camera.z = -900 or myCube.z = 900;
I have a BaseClass3D to start with, similar to BasicView from Papervision3D, where I start a world, a camera and a scene.
package {
import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import flash.display.Sprite;
import flash.events.Event;
public class BaseMain3D extends Sprite {
protected var _world3D:View3D;
protected var _scene:Scene3D;
protected var _camera:Camera3D;
public function BaseMain3D() {
super();
this.stage ? this.initBase() : this.addEventListener(Event.ADDED_TO_STAGE, this.initBase);
}
private function initBase(e:Event = null):void {
this.initUI();
this.initEngine();
this.initScene();
this.init();
this.addEventListener(Event.ENTER_FRAME, render);
}
// Iniciailizar UserInterface elements
protected function initUI():void {
}
// Inciar engine Away3D
protected function initEngine():void {
this._scene = new Scene3D();
this._camera = new Camera3D();
this._camera.zoom = 10;
this._camera.focus = 100;
this._camera.z = 0;
this._world3D = new View3D({scene:this._scene, camera:this._camera});
this._world3D.x = this.stage.stageWidth / 2;
this._world3D.y = this.stage.stageHeight / 2;
this.addChild(this._world3D);
}
// Iniciar o Scene
protected function initScene():void {
}
// init geral
protected function init():void {
}
protected function render(e:Event):void {
this._world3D.render();
}
}
}
With this values you can start “tunning” your view to obtain the most accurate appearance of your app.
Cheers!
pp