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

Remove Rotate and Resize Actions #804

Merged
merged 14 commits into from
Oct 31, 2024
Merged

Conversation

tinxx
Copy link
Collaborator

@tinxx tinxx commented Oct 29, 2024

This MR removes the now obsolete actions for scaling and rotating a node along with the gizmos.

The resize node action has been improved to allow for resize on the up-axis. Additionally, sprite handles now indicate the resize direction. The handles use a new dedicated shader that honors portals and transparency. The up/down handle is repositioned to the side of the node that faces the camera so that it should be easily visible without the clutter of adding four of them.

screenshot-2024-10-29-09-22-29

Background:
As node dimensions are usually derived from code metrics, rotation and resize are generally not a good idea.
However, there are exceptions that can be flagged to AllowManualResize. These are, as of now, the architecture nodes that need to be resized to allow for other nodes being placed on them.

tinxx added 11 commits October 21, 2024 10:55
- Restructure checks for different resize modes.
- Move child objects on vertical resize (up/down).
Implement up/down arrow handle for height adjustment as
plane with texture. A billboarding effect makes the handle
face main camera.
The up/down resize handle is placed at the camera-facing
side of the resized object and the billboarding effect was
removed. This prevents the handle from being occluded by
child nodes.
- All resize handles are now textured planes showing arrows.
- Add dedicated shader for sprites in portal.
Remove gizmos used for rotate and scale from scene
SEENewWorld as the actions have been dropped.
@tinxx tinxx added Improvement Improvement of existing features remove feature A feature has become obsolete and should be removed. labels Oct 29, 2024
@tinxx tinxx requested a review from falko17 October 29, 2024 09:26
@tinxx tinxx self-assigned this Oct 29, 2024
@tinxx tinxx changed the title Remove rotate resize actions Remove Rotate and Resize Actions Oct 29, 2024
Copy link
Collaborator

@falko17 falko17 left a comment

Choose a reason for hiding this comment

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

Thanks, it's always nice to get a PR where thousands of lines can be deleted :D
Just a few comments below, but all of them are minor.

Assets/SEE/Controls/Actions/ActionStateTypes.cs Outdated Show resolved Hide resolved
Assets/SEE/Controls/Actions/ResizeNodeAction.cs Outdated Show resolved Hide resolved
Assets/SEE/Controls/Actions/ResizeNodeAction.cs Outdated Show resolved Hide resolved
Assets/SEE/Controls/Actions/ResizeNodeAction.cs Outdated Show resolved Hide resolved
Assets/SEE/Controls/Actions/ResizeNodeAction.cs Outdated Show resolved Hide resolved
Assets/SEE/Game/City/VisualNodeAttributes.cs Outdated Show resolved Hide resolved
Assets/SEE/Game/SceneManipulation/GameNodeMover.cs Outdated Show resolved Hide resolved
Assets/SEE/GameObjects/Materials.cs Outdated Show resolved Hide resolved
@tinxx tinxx mentioned this pull request Oct 30, 2024
Copy link
Collaborator

@falko17 falko17 left a comment

Choose a reason for hiding this comment

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

Apart from the compile error, this looks good to me now and can be merged! I'll enable auto-merge, so as soon as the pipeline runs through (i.e., the error is fixed) this should be done.

@falko17 falko17 enabled auto-merge October 30, 2024 20:03
I currently cannot test AR at all but this fixes the
compilation errors. We need someone to test AR regularly
because most developers won't be able to do that.
@tinxx
Copy link
Collaborator Author

tinxx commented Oct 31, 2024

Apart from the compile error, this looks good to me now and can be merged! I'll enable auto-merge, so as soon as the pipeline runs through (i.e., the error is fixed) this should be done.

I have removed the VR code paths for rotate as well. However, I currently cannot test VR at all but this fixes the
compilation errors.

I think we need someone to test VR regularly because most developers won't be able to do that.

@falko17 falko17 merged commit 4f8fe03 into master Oct 31, 2024
6 of 8 checks passed
@falko17 falko17 deleted the remove-rotate-resize-actions branch October 31, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Improvement of existing features remove feature A feature has become obsolete and should be removed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants