Sign in to follow this  

Particle rotation

Recommended Posts

Ok i have recently created a particle engine fora smoke trail of a rocket and am now working on 'billboarding' the particles. i understand that im supposed to rotate each partcile by the opposite view matrix. so far i have done
WorldMatrix.SetRotateX( -Camera->GetViewPoint()._12 );
WorldMatrix.SetRotateY( -Camera->GetViewPoint()._22 );

then muiltiplying it in with everything else like
D3DDevice->SetTransform( D3DTS_WORLD, &(WorldMatrix.RotateX * WorldMatrix.RotateY * WorldMatrix.RotateZ * Particles[Count].WorldMatrix.Translate));

But its not always making the particles face the camera. Anyone Know how to do this? thanks, FitFool

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this