TheGecko
03-23-2002, 05:11 PM
Hey people,
I just finished writing my lens flare class but I'm having a few problems with it. I do lens flare occulsion culling by simply reading in the depth buffer at the screen x,y coords of the sun to determine if the sun is blocked or not.The wierd part is that the lens flare still draws although my terrain is covering the sun,but it disappears when my gun gets infront of the sun.I can't figure out why this is happening.The lens flare is the last thing that I'm rendering in my scene.
And another problem is,the lens flare draws infront of my character as well as BEHIND my caracter.I know there is a simple fix for this but I'm not sure what.Any suggestions?
Thanx for any help http://www.opengl.org/discussion_boards/ubb/smile.gif
I just finished writing my lens flare class but I'm having a few problems with it. I do lens flare occulsion culling by simply reading in the depth buffer at the screen x,y coords of the sun to determine if the sun is blocked or not.The wierd part is that the lens flare still draws although my terrain is covering the sun,but it disappears when my gun gets infront of the sun.I can't figure out why this is happening.The lens flare is the last thing that I'm rendering in my scene.
And another problem is,the lens flare draws infront of my character as well as BEHIND my caracter.I know there is a simple fix for this but I'm not sure what.Any suggestions?
Thanx for any help http://www.opengl.org/discussion_boards/ubb/smile.gif