-
Notifications
You must be signed in to change notification settings - Fork 28
IR-9784 IR-9782 camera poi guided control and direct control modes #1996
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
Conversation
…being hidden under it's html elements
… and modified default values
…nto IR-9782-camera-poi
…ollowCameraInputSystem
consolidated createPoiUI and createPoiUiView into one function
setCanvasWidth(rendererComponent.canvas.value.width) | ||
setCanvasHeight(rendererComponent.canvas.value.height) | ||
}, [rendererComponent.canvas, rendererComponent.needsResize]) | ||
setCanvasWidth(rendererComponent.canvas.value.clientWidth) |
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.
this can be simplified to const canvas = rendererComponent.canvas.value?.clientWidth ?? 0
and get rid of the useEffect
const cameraSettingsState = useMutableState(CameraSettingsState) | ||
|
||
// State for reactive boolean variables | ||
const [showPrevious, setShowPrevious] = useState(false) |
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.
we prefer to use hookstate instead of react for state
Summary
(some terminology in the tickets need work)
adding guided camera (POI list transitioning with either snapping or smooth scroll transitioning)
References
https://tsu.atlassian.net/browse/IR-9784
https://tsu.atlassian.net/browse/IR-9782
QA Steps
go to Settings entity, and scroll to CameraSettings
go to camera mode and choose either Direct or POI
for Direct you now have the option whether to spawn an avatar and multiple other settings listed in 9782
for POI you will be able to add and remove to a list, where each element can choose from entities in the scene with a Camera POI Component. the camera will begin on the first element's location+rotation, and transitions will move up or down the list with either scrolling or the optional UI buttons.
choose from smooth scrolling or snapping behavior to move between elements, and wrap/clamp to either circularly wrap around the list when reaching the ends or stopping at the ends