Archived

This topic is now archived and is closed to further replies.

Glowing Lines

This topic is 6113 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''m drawing some circles in OpenGL using... glBegin (GL_LINE_LOOP); I''m trying to find a way (the best) to make the lines glow, or appear gaseous. Does anyone know how to do this? Thanks NasMan

Share this post


Link to post
Share on other sites
glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
glColor(0,1,0,0.5)
draw line

(also disable texturing + lighting)

or instead of a line use a thin quad as a texture

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Haven''t actually tried it myself, but you could draw the line once as a line, and then draw a transparent quad slightly wider over the top for the glow ( with additive transparency perhaps?).

This would allow you to control the colour of the line, the colour of the glow and how bright the glow is, as three separate parameters....which should allow you to tweak it to look nice.

Game production:
Good, quick, cheap: Choose two.

Share this post


Link to post
Share on other sites
I''d try a textured quad...

but you could use a simple 1D texture, and alpha it on, as stated before.

good luck

I used to be indecisive. Now I''m not so sure...

Share this post


Link to post
Share on other sites