7 Replies Latest reply on Mar 10, 2013 10:10 AM by XColomer

    Everything goes black when appending Perspective projection

    XColomer

      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?