UFO: Alien Invasion Issue Tracker
Please log in to bookmark issues
OPEN  Bug report #2223  -  incorrect radar overlay near screen edges
Posted Dec 12, 2009 - updated Jan 28, 2013
kracken (kracken) has been working on this issue since January 28, 2013 (20:46)
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
    3. Normal
  • 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 2223 imported from sourceforge.net tracker on 2013-01-28 19:26:38

rev 27448

see the screenshots. as soon as map is moved a few pixels so that radar visible area touches screen edge, it is incorrectly covered as invisible
Comments Ported from Sourceforge  ⇑ top
richlv (2009-12-12 15:47:22)  ⇑ top
correct overlay
richlv (2009-12-12 15:52:48)  ⇑ top
incorect overlay
tlh2000 (2009-12-22 09:15:24)  ⇑ top
hopefully kracken can help us here
kracken (2009-12-22 16:16:25)  ⇑ top
radar overlay properly drawn only on left side of the screen
kracken (2009-12-22 16:16:50)  ⇑ top
radar overlay properly drawn only on right side of the screen
kracken (2009-12-22 16:19:02)  ⇑ top
The problem does not come from the creation of the overlay, I checked it is OK. The problem comes from the display of the overlay on the 2D geoscape. (on 3D geoscape, everything is fine).

Look at R_DrawFlatGeoscape(), in r_draw.c. The problem arises when the center of the map goes beyond Indonesia. This is due to the fact that Indonesia is the right side of the overlay map. Therefore, the value of 'cx' switches from 1.0 to 0.0. For some reason, the radar overlay is only drawn in left part of the screen, or right part, but not both (the overlay is not wrapped around earth). You can't see it because there is the HUD over the right part of the map, but if you move it you see this problem better (see screenshot, between both pictures I moved the map slightly to the left so that nx switched from a value slighlty below 1.0 to a value slightly above 0.0). So I guess the problem is at line 486 :"glDrawArrays(GL_QUADS, 0, 4);" Or maybe when radar texture is created? (shouldn't there be some it_wrappic somewhere?)

I don't know how to fix that, but I hope the informations I found will help you.
tlh2000 (2010-05-10 20:42:32)  ⇑ top
aduke1 (2012-10-01 00:17:57)  ⇑ top
- **milestone**: 2.3 --> 2.3.x

Steps to reproduce this issue
Nothing entered.