bulb light hallo's

Started by
2 comments, last by Marius 21 years, 10 months ago
I''m trying to add light bulb hallos to my engine. I succesfully done this placing bilboards quads wich caries appropriate blended light hallo texture. The problem is when I''m close to an edge that is going to cull the light bulb, the hallo is culled to (is a polygon) So the hallo is not longer circular. The quastion is what settings I have to subbmit to open gl to paint this hallo on top of the culled surface until the light center is culled to get the right effect. Thanks MCO
MCO
Advertisement
Can you just turn off depth testing while you render the halos?

Is turned off.


MCO
MCO
Right, you have depth-testing off, but you want the flare to
disappear when the light is occluded. If you have GF3 or better
nvidia card there is occlusion query extension. Otherwise you
could read depth values back from the location of the light
in screen space and see if it is occluded yourself.
GameDev Reader TODO List:1. Name my company.2. Buy domain name.3. Create web site.4. Name myself as CEO5. Create Game Engine.6. Design game.

This topic is closed to new replies.

Advertisement