bulb light hallo's
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
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement