I have some problem on my particles using Matrix.CreateBillboard on “some angle” it’s not facing the camera, I don’t know if my input on parameters are correct.
Hi !
The matrix creation seems ok to me if the billboards are intended to be spherical. (Camera.Up instead of Vector.Up as it is right now)
Can you show how you calculate the positions of the vertices ? Maybe it’s where the problem lies.
What is “m_Camera.Word.” ? Is this the Camera’s World matrix ?
Are you sure of the order of your matrices multiplies ?
Matrix.Multiply(ref m_MatToWorld, ref __WRotation, out m_MatToMul0);
Should’nt it be
Matrix.Multiply(ref __WRotation, ref m_MatToWorld, out m_MatToMul0);
?
Banging my head against the wall the problem is not with CreateBillboard and parameters, the artifacts only occurred when I attached the particle to a parent entity, e:g to the ship as shown above.
But your suggestions gave me an idea that somewhere in my final world matrix computation child to parent node matrix computation has the problem.