Jump to content
  • Advertisement
Sign in to follow this  
megatron244

Rendering light trail

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

Hi All, I hope that I'm posting this question in the right place. I'm trying to add a light trail effect to moving objects. I know that the usuall trick, is to render blur/transparent textures. The problem is - how to easyly set the quad to be on the same plane as the "camera". Is there a simple method, or should I manually calculate the vertices of the quad (I do several transformations to the projection and the model/view matrices). Thanks in advance, Vince

Share this post


Link to post
Share on other sites
Advertisement
I'd render the scene with no trail first, remember where each light was in SCREEN COORDINATES, change the projection matrix to an orthogonal one, then draw your trails.

Share this post


Link to post
Share on other sites
This sounds like a nice idea, although the drawback is (i think) that it would be harder to handle the case where some of the light trail is obscured by other objects.

- Vince

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!