UFO: Alien Invasion Issue Tracker
Please log in to bookmark issues
OPEN  Bug report #2853  -  Flares rendering broken
Posted May 10, 2011 - updated Jan 28, 2013
alextishin (alextishin) has been working on this issue since January 28, 2013 (20:47)
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
  • Resolution
    Not determined
  • Priority
    1. Very low
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
Issue description
Item 2853 imported from sourceforge.net tracker on 2013-01-28 19:50:51

Now flares are always drawn in front of the models, which looks better, but is still not correct, but also now we have graphic errors sometimes, see: http://ufoai.ninex.info/forum/index.php?topic=5803.msg47309#msg47309

It might have to do with some flares being transparent, because the bug does not happen with all the flares, but you can check it out on gate or laboratory maps.
Comments Ported from Sourceforge  ⇑ top
alextishin (2011-05-10 22:57:45)  ⇑ top
There are two reasons for the broken graphics: one is that the detail brushes are treated as if they were opaque (thus breaking the rendering order if they aren't or have special effects like flares); and the second is R_DrawFlareSurfaces() not being tedious enough to set up rendering state. 3ab470b fixes the second problem, but first still has to be addressed.

Also, flares do have to have more accurate occlusion check, but I'm think that is not a high priority item -- after all, in a top-down game flares are really rare to occur exactly behind models.
mcr2010 (2011-05-11 09:17:56)  ⇑ top
Setting the priority to 2.
mcr2010 (2011-10-02 08:09:58)  ⇑ top
Flares still shine through the models. Attached a new screenie. Just FYI, priority for this is low ofc...
mcr2010 (2011-10-02 08:10:44)  ⇑ top
Steps to reproduce this issue
Nothing entered.