Jump to content
  • Advertisement
Sign in to follow this  
speciesUnknown

Nice looking tracers

This topic is 2492 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

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!