Is it possible to billboard a sprite using a transformation matrix?

Posted by Ross on Game Development See other posts from Game Development or by Ross
Published on 2012-06-01T15:50:23Z Indexed on 2012/06/01 16:51 UTC
Read the original article Hit count: 463

Filed under:
|
|
|
|

None of the current topics on billboarding seemed to answer this question.

But, given

  • a sprite (or quad) that has it's own 4x4 transformation matrix
  • a camera with a view matrix (a standard 4x4 transformation matrix)

is it possible to compute a 4x4 transformation matrix such that when the quad's matrix is multiplied with this matrix it has an orientation of looking at the camera?

Thank you in advance.

© Game Development or respective owner

Related posts about c++

Related posts about 3d