Sign in to follow this  
Scottehy

Laser Trails / Tracer

Recommended Posts

Hey guys,

Just wondering if anyone can point me in the right direction of doing laser trails. I want to do something that leaves a nice trail behind that fades without using particles. Possibly starting thicker then fading off thinner.

Not to sure though how to attempt doing such a task.

How ever I do have shader, particle and sprite knowledge. So if anyone can think of anyway of doing this that isn't do graphics/cpu intense please let me know. Or possibly link some tutorials.

I'm aiming to implement this in XNA as well. If it's any help to anyone.

Cheers,
Scottehy,

Share this post


Link to post
Share on other sites
Cylindrical/Axial billboarding works well for this purpose. It is essentially billboarding on an arbitary axis, so that you show as much surface area of the polygon to the camera, while retaining a depth and direction. I used it on a past commercial product for both tracers and curving trails.

Per point on the line, take the normalized direction of the camera to the point, and cross product it against the forward direction of the camera. That gives you your cross section axis to extrude against.

Share this post


Link to post
Share on other sites
[quote name='Digitalfragment' timestamp='1330038989' post='4916017']
Cylindrical/Axial billboarding works well for this purpose. It is essentially billboarding on an arbitary axis, so that you show as much surface area of the polygon to the camera, while retaining a depth and direction. I used it on a past commercial product for both tracers and curving trails.

Per point on the line, take the normalized direction of the camera to the point, and cross product it against the forward direction of the camera. That gives you your cross section axis to extrude against.
[/quote]

Thanks for that, to the point and it makes sense. I'll be giving it a try within the next 2 days.

Thank you :)

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