Some time ago I implemented a particle system using billboarding techniques to ensure that the particles are always facing the viewer. These billboards are always centered on one 3d coordinate.
I would like to build on this and use billboarding as the basis for things like laser bolts and gunshots. Here the difference is that instead of a single point particle I now have to draw a billboard between two points - the start and end of the laser bolt for example. I appreciate that having two end points places limits on how much the billboard can be rotated to face the viewer, but I'm looking to code a best effort solution. For the moment I am struggling to work out how to do this or find any tutorials / code examples that explain how to draw a billboard between two points ... can anyone help?
Thanks.
↧