Skip to content
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

debug overlay #1698

Merged
merged 9 commits into from
Dec 25, 2022
Merged

debug overlay #1698

merged 9 commits into from
Dec 25, 2022

Conversation

kianzarrin
Copy link
Collaborator

printing bezier, position, and direction in log does not make things very helpful(which is what we are doing now). So I created this simple framework for debug overlay. there is also:

  • some extensions for simple overlay (Highlight.cs was too complicated for our simple debugging needs).
  • usage in one place to test it.

Test: select a vehicle near junction/end and observe its transition bezier information
This is draft because it needs my prev PRs for testing.

@kianzarrin kianzarrin added the Overlays Overlays, data vis, etc. label Nov 24, 2022
@kianzarrin kianzarrin self-assigned this Nov 24, 2022
@kianzarrin
Copy link
Collaborator Author

this is pic from my experimental code.
image

#endif
if (debugOverlay) {
DebugOverlay.Actions.Remove(0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to remove these because the overlay needs to clear if vehicle exits node.

@kianzarrin kianzarrin marked this pull request as ready for review November 29, 2022 00:44
@kianzarrin
Copy link
Collaborator Author

kianzarrin commented Nov 29, 2022

image

Copy link
Member

@krzychu124 krzychu124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok 👍

@kianzarrin kianzarrin merged commit 1d2abbb into master Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Overlays Overlays, data vis, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants