Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sort of like a strip-light effect; not actually a light source, but just a polygon with glowing edges.

Can this be done easily? Right now I'm contemplating drawing a line more than once with varying alpha/width values to achieve this, but I think that'll cause weird glowing points at the vertices, which is far from ideal.

share|improve this question
Chances are you will want a shader. – The Communist Duck May 7 '11 at 8:23

1 Answer

This thread talks about rendering a laser beam. It sounds as if you're trying to do something similar.

The basic idea is to extrude the line into a polygon, but do it like you'd billboard a point sprite (but for a line segment).

On page two in the link I gave they have this texture, which gives a good clue on how to do it:

laser beam effect texture

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.