Hi there,
I'm trying to apply a perspective projection to a matrix3D, but as soon as I do so, everythng goes black.
finalTransform = new Matrix3D();
finalTransform.append(new Matrix3D(m));
var projectionTransform = new PerspectiveMatrix3D();
var aspect:Number = 4/3;
var zNear:Number = 0.1;
var zFar:Number = 1000;
var fov:Number = 45*Math.PI/180;
projectionTransform.perspectiveFieldOfViewLH(fov, aspect, zNear, zFar);
//This line makes everything black
finalTransform.append(projectionTransform);
Any idea / suggestion?
How to enable debugging in FlashBuilder
Did you write PerspectiveMatrix3D on your own (because its surely no native class in Flash)?
Show the source here if posssible
there is an undocumented but supported perspectivematrix3d class: http://barliesque.com/easy_agal/docs/com/adobe/utils/PerspectiveMatrix 3D.html
North America
Europe, Middle East and Africa
Asia Pacific