You can get the fov by doing a single render, but..
Just tried it and the above doesn't work for 3.
So don't really know :/

A hcky way would be to do pixel perfect type thang with the default camera.

set the cubes width and depth to the stageWidth, and height to stageHeight
and
set the camera.z to -900-stagewidth/2

That would give you a cube that fills the stage.


On 16 November 2011 15:31, Miroku <miroku...@yahoo.it> wrote:

> Problem is that camera.fov always returns 0 to me =\
>
> On 16 Nov, 11:07, John Brookes <jbp...@googlemail.com> wrote:
> > I think its the same. Just replace with camera.fov
> >
> > eg camera at defualt 0,0,-1000 a plane at 0,0,0
> >
> > var maxheight:Number = Math.tan((view.camera.fov * 0.5) * Math.PI / 180)
> *
> > 1000 * 2;
> > var maxWidth:Number = maxheight * (stage.stageWidth / stage.stageHeight);
> >
> > plane = new Plane({material:material, width:maxWidth, height:maxheight,
> > yUp:false, bothsides:true});
> > scene.addChild(plane);
> >
> > On 15 November 2011 22:30, Andrea Silvestri <
> andrea.silvestr...@gmail.com>wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Any solution for away 3? =\
> >
> > > Il 15/11/2011 23:14, John Brookes ha scritto:
> >
> > >  ahh no, thats for away 4
>

Reply via email to