Jump to content
  • Advertisement
Sign in to follow this  
fitfool

Particle rotation

This topic is 4186 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Take a look at this article to help you out here:

http://www.mvps.org/directx/articles/view_oriented_billboards.htm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!