Jump to content
  • Advertisement
Sign in to follow this  
Scottehy

Laser Trails / Tracer

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

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
Advertisement
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

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.


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
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!