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 / Closed Submit Patch #4589 3D Globe math
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    5. Important
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
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/patches/462 Item 462] imported from sourceforge.net tracker on 2013-01-28 20:39:33

here is an updated version that also renders the models - but the origin and rotation is still wrong.
===== Comments Ported from Sourceforge =====

====== tlh2000 (2010-02-01 08:57:51) ======


====== kracken (2010-02-02 14:12:07) ======

position fixed, rotation half fixed.
====== kracken (2010-02-02 14:12:17) ======

Here's a new update : the positition should be fixed, and the rotation is half fixed. There's still to rotate the model in the direction of it's target (for an aircraft or a missile), and to add the 3D depth.
====== kracken (2010-02-02 15:11:43) ======

new version: rotation is fixed. Please test.
====== tlh2000 (2010-02-02 18:25:39) ======

quite nice - i will try to fix the depth issue - but the rotation issue is most likely something for your side ;)
====== tlh2000 (2010-02-02 18:35:53) ======

maybe the problem is related to the fact that we are looking into the globe and are rendering the inside of the globe, not (like one would maybe expect) the outer hull of the sphere. we are only rendering the half of the inner part of the globe.
====== kracken (2010-02-02 19:29:45) ======

I forgot to add a message after my last update, but the last attached patch should have a proper rotation. Basically, I think everything is OK from my side.
Concerning the depth, are you sure we render the inside of the globe? We wouldn't see the light effect of the sun if it were the case, no? (but i'm not familiar with this part of the code)
====== tlh2000 (2010-02-02 21:26:41) ======

i''m almost sure - and now i'm wondering whether that might prodiuce problems with the depth rendering.
====== kracken (2010-02-03 07:18:52) ======

new version: I reactivated the "manual" depth test
====== kracken (2010-02-03 07:23:25) ======

Even if the globe is only the inside of the globe, the models that are behind earth should be behind that surface.
I made a new version of the patch where I reactivated the "manual" depth: i just test if the model is in front or behind of earth, and deactivated drawing if it's not in front.
So current patch fix:
https://sourceforge.net/tracker/?func=detail&aid=1898022&group_id=157793&atid=805242

However, bug http://sourceforge.net/tracker/?func=detail&aid=2938824&group_id=157793&atid=805242 is still depending of openGL depth test.
====== kracken (2010-02-06 13:24:40) ======

patch applied to trunk. There is still the depth problem to fix, however.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif