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

assign elements a stacking layer #106

Open
wants to merge 508 commits into
base: main
Choose a base branch
from
Open

assign elements a stacking layer #106

wants to merge 508 commits into from

Conversation

benptc
Copy link
Contributor

@benptc benptc commented Apr 24, 2023

hobinjk-ptc and others added 30 commits June 9, 2022 15:22
when menubar is added, set screenTopOffset to its height
… work on exact position/angle/smoothing of camera in each perspective
…rspective, as a function of distanceToCamera
benptc and others added 26 commits March 22, 2023 11:45
adds MenuBar item to toggle DarkMode on/off (defaults to dark mode)
recalculates projection matrix when onWindowResized is triggered
Proudly presenting the new remote operator off-center camera:
1. RMB on the AreaTarget adds a "focus point" green cube, and camera rotates around this off-center focus point
2. MMB pan function remains unchanged
3. Mouse wheel scroll zooms the camera towards the focus point
4. Press G to instantly zoom & focus on the focus point
* Added toggle to render human poses in remote viewer.
* Tweaked naming in View menu.
1. Clamped the camera vertical angle, so that when camera gets closer to 2 poles, it rotates very slow and never gets to 90 deg.
2. Removed the addButKeepDistance(), since orbit() works well on its own.
3. Pushed the PR in userinterface that exports realityEditor.spatialCursor.getRaycastCoordinates.
4. Deleted the cameraTargetIcon three.js cube, and replaced it with an object with just a visible property. Since we have focusTargetCube now.
5. Added back the rotate / pan / zoom icons.
6. When initializing, adds the focusTargetCube at (0,0,0).
7. reset() function now also resets focusTargetCube back to (0,0,0).
8. Deleted the "prevents camera singularities by slowing down camera movement exponentially as the vertical viewing angle approaches top or bottom" part, since all the rotation clamp vertical angle logic is handled within the rotate section.
Works in conjunction with the new PR in userinterface
1. Fixed the zooming bug so that: when zooming in, camera points towards focus point quicker to avoid getting to the back of the mesh sometimes; when zooming out, no more weird rotating actions
2. Added G-focus keyboard prompt to normal & fly modes
default view frustum cutouts to disabled; toggle in View menu turns on frustum cutouts
…enter-Camera

Remote operator off-center camera
…update

Steve rotate center element update
…t-Fixes

Esc key, g focus, & zooming out fixes
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.

5 participants