OpenSWE1R / openswe1r

An Open-Source port of the 1999 Game "Star Wars Episode 1: Racer"
https://openswe1r.github.io/
GNU General Public License v2.0
313 stars 26 forks source link

Add support for lens-flare effect #97

Closed JayFoxRox closed 6 years ago

JayFoxRox commented 6 years ago

This adds support for the lens-flare effect which can be seen when looking into the suns (if effect is activated in the menu):

Screenshot with fixed lens-flares (Here is another "before" and here is another "after" image)

Various other graphical effects show now, too (race positions for other racers + lamps):

Screenshot of race position, and lamps on oovo


The required capability for this is only reported from GetCaps as this is what the game will use for checking this feature. This implementation is horribly broken and inconsistent with EnumDevices, but it get's the job done for SWE1R.

As the same capability is checked for "smoke and dust" rendering, that feature can also be enabled in the menu now (without the game disabling or ignoring it). However, there are some graphical glitches when an object is behind the engines (here is how it looks like on master) related to that effect due to missing alpha testing. These will be addressed (partially) in a follow-up PR which I have prepared already.


Closes #63