Sign in to follow this  

Rendering light trail

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