Original Post
My question is easy. How can i create a matrix, with i can rotate a face to the camera (billboarding). I have used this function, but it is working incorrectly. FUCNTION Look=CamPos-Emitter.pos; D3DXVec3Normalize(&Look,&Look); Up.x=0.0f;Up.y=1.0f;Up.z=0.0f; D3DXVec3Cross(&Right,&Look,&Up); D3DXVec3Cross(&Up,&Look,&Right); M._11=Right.x;M._12=Up.x;M._13=Look.x;M._14=Emitter.pos.x; M._21=Right.y;M._22=Up.y;M._23=Look.y;M._24=Emitter.pos.y; M._31=Right.z;M._32=Up.z;M._33=Look.z;M._34=Emitter.pos.z; M._41=0; M._42=0; M._43=0; M._44=1; // SET TRANSFORM ( M , WORLD MATRIX); ..........