mainly a FYI, the size on screen is proportional to the size of the image file, if you make a highres lens flair file, it will be HUGE in game (image is cropped a bit, the white lines are 1px wide lighter pixels at the edge of the texture to show where the edge is).
would need a code change to make the lens flair always take up a certain % of the screen and scale the image appropiatly
highres lens flair
We also need to fix the flair to check z-buffer or whatever so that you don't see it when sun is eclipsed by bases/rocks
Last edited by Adaven on Mon Feb 18, 2008 8:10 pm, edited 1 time in total.
[img]http://www.freeallegiance.org/forums/st ... erator.gif" alt="IPB Image">
<img src="http://adaven6x7.googlepages.com/PKBanner3copy.png[/img]
<img src="http://adaven6x7.googlepages.com/PKBanner3copy.png[/img]
also, when it was as big as it was, the lens flair only gets drawn if the centre of the sun is on screen, so if you move it just off screen the whole thing disappears, then if you move it just back on screen it just appears and fills the screen. it looked slightly strange, it needs to come on gradually, not just be a either on or off thing. though you don't notice it so much when playing and when its its usual size.
Actually a little easier said than done. If the engine has ray casting functionality (ie, for bullets? depending on how they're tested) it might be possible to do a check on the CPU, otherwise u have to read back data from the video card to check if the sun is occluded.. reading back data from the video card = slow.Adaven wrote:QUOTE (Adaven @ Feb 18 2008, 02:10 PM) We also need to fix the flair to check z-buffer or whatever so that you don't see it when sun is eclipsed by bases/rocks


