UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Open Bug report #2223 incorrect radar overlay near screen edges
Go to the next issue (open or closed)
Go to the next open issue
kracken (@kracken) has been working on this issue since January 28, 2013 (20:46)
Issue basics
  • Type of issue
    Bug report
  • Category
    Campaign
  • Targetted for
    Not determined
  • Status
    Open
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/2223 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 =====

====== richlv (2009-12-12 15:47:22) ======

correct overlay
====== richlv (2009-12-12 15:52:48) ======

incorect overlay
====== tlh2000 (2009-12-22 09:15:24) ======

hopefully kracken can help us here
====== kracken (2009-12-22 16:16:25) ======

radar overlay properly drawn only on left side of the screen
====== kracken (2009-12-22 16:16:50) ======

radar overlay properly drawn only on right side of the screen
====== kracken (2009-12-22 16:19:02) ======

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) ======

https://sourceforge.net/tracker/index.php?func=detail&aid=2998516&group_id=157793&atid=805242
====== aduke1 (2012-10-01 00:17:57) ======

- **milestone**: 2.3 --> 2.3.x
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif