highres lens flair

A place to discuss user-created Allegiance 3D models, textures, images, and other visual ingame content.
Post Reply
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

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
Adaven
Posts: 1959
Joined: Sat Oct 25, 2003 7:00 am
Location: Greater Ozarks

Post by Adaven »

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.
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

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.
Orion
Posts: 1733
Joined: Tue Jul 01, 2003 7:00 am
Location: Planet Min·ne·so·ta
Contact:

Post by Orion »

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
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.
Image
Post Reply