Skip navigation
XColomer
Currently Being Moderated

Everything goes black when appending Perspective projection

Feb 18, 2013 4:06 AM

Tags: #stage3d #matrices #matrix3d

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?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points