Hey Pascual
currently an Away3d view instance will default it's viewport (ie. clipping window) to the edges of the screen.
In order to define a clipping viewport smaller than the screen, you have to manually set the clipping property on the view like so:
view.clip = new RectangleClipping(-100, -100, 100, 100);
this culls triangles outside the clipping view, but you'll still want to mask the edges to provide a clean view boundary. In the case of a simple rectangle mask, this can be done with a scrollRect:
view.scrollRect = new Rectangle(-100, -100, 200, 200);
fov is not a property that exists natively in the camera, but is it fairly easy to calculate (example below is for a fov of 45 degrees):
var fov:Number = 45;
var fov2:Number = (fov/2) * (Math.PI/180);
var tan:Number = Math.tan(fov2);
camera.zoom = width/(2*tan*camera.focus);
where width is the width of you view clipping window
a fov setter should be added to the Away3d camera class in the next revision
atb
Rob
--
Rob Bateman
Flash Development & Consultancy
rob.b...@gmail.comwww.infiniteturtles.co.uk
www.away3d.com