UFO:Alien Invasion

Technical support => Bugs in stable version (2.5) => Topic started by: Charlie on December 25, 2012, 08:45:47 pm

Title: Smoke graphic light
Post by: Charlie on December 25, 2012, 08:45:47 pm
Smoke lighting is incorrect. Light on the smoke sprites appears to be coming from below, while light on every other surface comes from above (sun/sky). You can clearly see the discrepancy here:
http://i.imgur.com/jawRk.jpg


The smoke graphic looks correct, the smoke is darker at the bottom and brighter at the top where the sun would shine on it, so I'm guessing it's rotated incorrectly in the code.
base/pics/sfx/smoke_00.png
Title: Re: Smoke graphic light
Post by: Charlie on December 28, 2012, 06:06:21 pm
I rotated that graphic 180° (so that in the PNG the bottom is now light), now it looks much better in-game.
http://i.imgur.com/SLJtw.jpg (http://i.imgur.com/SLJtw.jpg)


So the proper fix is to undo the rotation that the code does to this graphic.
Title: Re: Smoke graphic light
Post by: H-Hour on January 07, 2013, 07:21:54 pm
What PNGs are you modifying? I rotated base/pics/smoke/smoke_*.png and couldn't notice any difference...
Title: Re: Smoke graphic light
Post by: Charlie on January 07, 2013, 07:36:36 pm
I rotated base/pics/sfx/smoke_00.png 180° so that the png looks upside-down (dark at the top) but in-game it looks correct (dark at the bottom).
Title: Re: Smoke graphic light
Post by: Charlie on February 24, 2013, 02:33:07 pm
Has this been fixed yet?
Title: Re: Smoke graphic light
Post by: H-Hour on February 24, 2013, 05:17:23 pm
Looks like it (http://ufoai.org/bugs/ufoalieninvasion/issues/3450).