Hi,

I'm trying to make a cabinet projection in Away3D Lite and I could use
some help.

Looking at some formulas I have come up with this transformation
Matrix.

var obliqueMatrix:Matrix3D = new Matrix3D();
var obliqueRaw: Vector.<Number> = obliqueMatrix.rawData;
var alpha:Number = 63.4;
var theta:Number = 45;
var ta:Number  = Math.tan(alpha * Math.PI / 180);
var snt:Number = Math.sin(theta * Math.PI / 180);
var cnt:Number = Math.cos(theta * Math.PI / 180);
obliqueRaw[2] = -cnt / ta;
obliqueRaw[6] = -snt / ta;
obliqueRaw[10] = 0;
obliqueMatrix.rawData = obliqueRaw;

I'm not sure if position 2 and 6 might need to be 0 and 5 instead?
I think I need to apply this Matrix to each mesh somehow and then use
the orthographic projection lens? I saw some post related to using
this approach in opengl.

Thanks!


Reply via email to