the property you would like to set is the viewMatrix of the camera,
what is cool is that it's also a 4x4 matrix.
What is less cool, is that as I know they are no implemented way to
assign a "viewMatrix" to the camera.
the viewMatrix is a result os a view transform matrix, a field of
view, a zoom, etc...
so it doesn't seems quite easy...at least for me...

first if your matrix is represented that way in away3D:

sxx:2.000000        sxy:0.000000        sxz:0.000000        tx:
0.000000
syx:0.000000       syy: 2.666667        syz:0.000000        ty:
0.000000
szx:0.000000        szy:0.000000        szz:1.000200        tz:
1.000000
swx:0.000000        swy:0.000000        swz:-2.000200       tw:
0.000000

to create it:
var yourMatrix:Matrix3D = new Matrix();
matrix.sxx = 2.000000;
matrix.sxy = 0.000000
et caetera....

then after, you could use something like :
camera.viewMatrix = yourMatrix;
with this method (to paste in the camera3D class.)

 public function set viewMatrix(projectionMatrix:Matrix3D):void
        {
                _viewMatrix.clone(projectionMatrix);
                invViewMatrix.inverse(_viewMatrix);
                update();
        }
but as I'm not sure about the in and out of the camera properties and
the effect on and depending on the viewMatrix,
I'm not sure that it's complete, I need a relay.. anyone
But maybe you can achieve it, I think it's a good start...

;-)



Reply via email to