Sign in to follow this  
megatron244

Rendering light trail

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

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