Sign in to follow this  
speciesUnknown

Nice looking tracers

Recommended Posts

Right now, my tracers are just lines drawn in a batch with alpha transparency. These suffer from the obvious problem of always being 1 pixel thick; im using XNA so I cant set the line width, and anyway, this effect doesnt look nice. For lasers, I have an X cross-sectioned pair of translucent quads aligned along the direction of travel which looks OK but laser beams are somewhat thicker than tracers, and always go from point A to point B meaning that the ends usually aren't visible (they look horrible anyway).

What I want is an idea for implementing nice looking tracers supporting tiny (bullets from a machinegun) to thick trails, in 3d.

What techniques can I use?

Share this post


Link to post
Share on other sites
Oblong billboards of motion-blurred bullets could be aligned with the trajectory but rotated to face the camera (instead of drawing two perpendicular ones).

You have a plane defined by a line (the shot's trajectory) and a point (the camera) and a suitable billboard normal (perpendicular to the shot's line and through the camera).

Share this post


Link to post
Share on other sites
If you're using HDRi, you can render a mono-color capsule with your 'core' tracer color and then have the bloom pass give things a nice glow. Lots of UE3 games do something similar and I think it looks pretty nice in practice. You can also do something kind of similar substituting a billboard w/ an HDR texture if the game needs it.

EDIT: You could also texture the capsule, too.

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