Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4617 closed defect (fixed)

Incomplete Healrange visualization circle

Reported by: elexis Owned by: fatherbushido
Priority: Must Have Milestone: Alpha 22
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by elexis)

When training the mauryan healer hero, we can observe that it's range visualization is an incomplete circle.

It occurs with the regular healer too if the range is upgraded at the temple.

It sounds like a rounding issue in UpdateTexturedLineOverlay of CCmpSelectable.cpp.

See also Phab:D571

https://trac.wildfiregames.com/raw-attachment/ticket/4617/healrange.jpg

Attachments (3)

healrange.jpg (519.3 KB ) - added by elexis 7 years ago.
half.png (1.1 MB ) - added by fatherbushido 7 years ago.
brit_cc.jpg (891.8 KB ) - added by elexis 7 years ago.
Screenshot from Alpha 21

Change History (10)

by elexis, 7 years ago

Attachment: healrange.jpg added

comment:1 by elexis, 7 years ago

Description: modified (diff)

comment:2 by fatherbushido, 7 years ago

If one just draw half of the points, it seems the line won't be closed (even if we can see something when moving the healer).

https://trac.wildfiregames.com/raw-attachment/ticket/4617/half.png

Last edited 7 years ago by fatherbushido (previous) (diff)

by fatherbushido, 7 years ago

Attachment: half.png added

by elexis, 7 years ago

Attachment: brit_cc.jpg added

Screenshot from Alpha 21

comment:3 by elexis, 7 years ago

The issue can be reproduced with building footprints as well, even before the aura range commit in alpha 21: https://trac.wildfiregames.com/raw-attachment/ticket/4617/brit_cc.jpg

Last edited 7 years ago by elexis (previous) (diff)

comment:4 by fatherbushido, 7 years ago

(The subdivision code needs some cleaning/simplification). Else the issue is just in TextureLineRData. The V coordinate is switched from 0 to 1 at each turn. But for a closed line, if we have an odd number of 'points' the last point and the first will get the same V and so even if the quad is completed, we will not see it. (One could notice there is something traced). That bug won't be noticed when there is an even number of point (which is the case for an healer without tech).

comment:5 by fatherbushido, 7 years ago

comment:6 by fatherbushido, 7 years ago

Owner: set to fatherbushido
Resolution: fixed
Status: newclosed

In 19833:

Properly apply texture to the last quad of an overlay textured line. Reviewed by vladislavbelov.
Fix #4617.
Differential Revision: https://code.wildfiregames.com/D663

comment:7 by elexis, 7 years ago

Component: UI & SimulationCore engine
Milestone: BacklogAlpha 22
Patch: simple
Priority: Should HaveMust Have

Thanks! It would have been really annoying for players and devs now that the bug became more apparent.

Note: See TracTickets for help on using tickets.