project-navigation
Personal tools

Author Topic: Smoke graphic light  (Read 3512 times)

Offline Charlie

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Smoke graphic light
« 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

Offline Charlie

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Smoke graphic light
« Reply #1 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


So the proper fix is to undo the rotation that the code does to this graphic.

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Smoke graphic light
« Reply #2 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...

Offline Charlie

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Smoke graphic light
« Reply #3 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).

Offline Charlie

  • Rookie
  • ***
  • Posts: 45
    • View Profile
Re: Smoke graphic light
« Reply #4 on: February 24, 2013, 02:33:07 pm »
Has this been fixed yet?

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Smoke graphic light
« Reply #5 on: February 24, 2013, 05:17:23 pm »