Sign in to follow this  

how to make an object glow

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

hello, i was wondering how do you apply a colored glow effect to any object? what additional primitves are needed? where are they positioned? what textures do you apply to them? what blendmodes are used? thanks a lot!

Share this post


Link to post
Share on other sites
1) render what you want to glow into a texture (either the whole object or just a colour on black 'glow texture')
2) blur the texture, either use a shader, or you could down sample for a simple blur, or both
3) render the scene
4) render a fullscreen quad with the blur texture applied and additive blending enabled

EDIT:
use glBlendFunc(GL_ONE, GL_ONE) for additive blending.
Set quad alpha to 0 maybe?

[Edited by - JPulham on October 26, 2008 12:38:54 PM]

Share this post


Link to post
Share on other sites

This topic is 3335 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.

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