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

Upgrade Komodo Package to v0.5.4 #11

Merged
merged 16 commits into from
Dec 15, 2021
Merged

Upgrade Komodo Package to v0.5.4 #11

merged 16 commits into from
Dec 15, 2021

Conversation

parseccentric
Copy link
Contributor

@parseccentric parseccentric commented Dec 14, 2021

Upgrade Komodo Package to v0.5.4

Cleaned up and refactored code, adjusted colors

Commented out code related to Primitives and Grouping features, which will come later. Made ImpressMenu2 panels into prefabs. Adjusted colors.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Testing
  • Change that requires a documentation update

How Has This Been Tested?

Visually inspect menu for coloring consistency.

Repaired eraser

Fixed bug where eraser would only be enabled for the left hand.

See more details in #1

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Testing
  • Change that requires a documentation update

How Has This Been Tested?

Steps to test:

  1. Enter Play mode.
  2. Make sure the Scene and Game windows are visible at the same time
  3. Select ManualTestHelper in the hierarchy.
  4. Right click the script component on it and choose "Switch to XR"
  5. Move handL so that it points at the Create tab
  6. In the Game window, press the T key to open the Create panel
  7. Use the same technique to press the Erase button

Expected result: both eraser displays show up.

  • Manual Test
  • Unit Test
  • Integration / End-to-End Test

Added ManualTestHelper and ControllersManager

Created ManualTestHelper script and gameObject. To use it, right click the script component on the gameObject in the Main scene and select a test function.

I also introduced ControllersManager, which is a future candidate for refactoring KomodoControllerInteraction.cs. For now, it supports the T and Y keys, which correspond to the left controller trigger and the right controller trigger. To use this, make sure the game window is focused and the menu mode is set to XR mode.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Testing
  • Change that requires a documentation update

How Has This Been Tested?

See the test for "Repaired Eraser" above.

Expected result: holding T activates left selection, drawing, or erasing, and holding Y activates right selection, drawing, or erasing

  • Manual Test
  • Unit Test
  • Integration / End-to-End Test

Added ManualTestHelper and ControllersManager

Created ManualTestHelper script and gameObject. To use it, right click the script component on the gameObject in the Main scene and select a test function.

I also introduced ControllersManager, which is a future candidate for refactoring KomodoControllerInteraction.cs. For now, it supports the T and Y keys, which correspond to the left controller trigger and the right controller trigger. To use this, make sure the game window is focused and the menu mode is set to XR mode.

Repaired ColorPicker color selection

Color selection now reflects the correct color rather than black or white. It also works on the first opening of the draw tab, unlike before.

Under the hood, ColorPicker has been reworked into a prefab. Most functions have been moved to a static class, ColorPickerManager. The script component on the ColorImage has been reduced to the essentials. Both classes are initialized regardless of whether the draw tab is open thanks to a new script, CreateMenu.

See more details in #1

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Testing
  • Change that requires a documentation update

How Has This Been Tested?

See the test for "Repaired Eraser" above for how to use the VR hands in the editor on a screen.

Expected result: selecting the draw tab results in no errors, the selected color is initially white, hovering over the ColorImage results in a correct preview color, and selecting a color results in the correctly displayed color, and drawing with that color results in the correct draw stroke color.

  • Manual Test
  • Unit Test
  • Integration / End-to-End Test

Test Configuration

No browser yet
No VR headset yet

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas that are not self-documenting
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • My changes have no unnecessary logging
  • I have added tests that prove my fix is effective or that my feature works, for sufficiently complex features
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • Sensitive info like tokens, secrets, and passwords have been removed before submitting

Modified from this article:
Phillip Johnston, “A GitHub Pull Request Template for Your Projects - Embedded Artistry,” Embedded Artistry, Aug. 04, 2017. https://embeddedartistry.com/blog/2017/08/04/a-github-pull-request-template-for-your-projects/ (accessed Jul. 22, 2021).

@parseccentric parseccentric changed the title Dev Upgrade Komodo Package to v0.5.4 Dec 14, 2021
@parseccentric
Copy link
Contributor Author

Removed trusses, adjusted lighting

Removed large structures and softened lighting to nearly eliminate shadows.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Testing
  • Change that requires a documentation update

How Has This Been Tested?

Visually inspect.

Repaired UIManager bug, Repaired main scene

Fixed menu initialization sequence. Fixed main scene by replacing the missing SocketIOAdapter and ConnectionAdapter components.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Testing
  • Change that requires a documentation update

How Has This Been Tested?

Enter play mode. Expected result: menu finishes initializing and loading overlay goes away.

Enter a build. Connection status window should indicate connection status info from the relay server (or a poor connection).

@parseccentric
Copy link
Contributor Author

@Barasakar When you have a chance, can you review and approve this and let me know?

@Barasakar Barasakar marked this pull request as ready for review December 15, 2021 18:15

return new Vector2(localX, localY);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

spacing

@parseccentric parseccentric merged commit fe38467 into main Dec 15, 2021
@parseccentric
Copy link
Contributor Author

This addresses #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants