-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GuiTraceRay for radardrift #1764
Fix GuiTraceRay for radardrift #1764
Conversation
instead of converting and adding fixed quad number afterwards.
Is the white quad debug view some standard |
It's something quick and dirty I had to add myself to debug the ray and quad issues here, same with radardot-realpos line, and selected units quads. Was thinking about adding it somehow, but the fact it would require a check every quad at quad iteration inside GuiTraceRay, kind of puts me off. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Needs a rebase now |
Merged, not sure if you prefer rebase. It shouldn't matter for this but let me know if you want me to change the procedure, this way it's also easier to see what changes I did for the merge. |
I have hard time reading |
Also seems like I can't merge it now due to some sort of conflict anyway. |
Work done
Related issues
Details
Before
(images showing traced quads and the offset from radar position to real position for units in such quads)
note the dots inside the quads with no offset. those are the "error dots". they are coming from a different quad outside of the one they currently flying above, so they wouldn't be selectable.
After
hopefully no dots without selection, but a lot more quads searched. (note it's not exactly the same ray, so not directly comparable with the prev image, just to show no "error dots" are happening). generally with the solution we will be scanning 3x the quads since we need to scan around the usual set of quads to find possibly far away radar dots.
Diagram
Didn't color all quads properly but it should show the idea