10000 IR-9784 IR-9782 camera poi guided control and direct control modes by SamMazerIR · Pull Request #1996 · ir-engine/ir-engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 119 commits into from
Jun 5, 2025

Conversation

SamMazerIR
Copy link
Contributor
@SamMazerIR SamMazerIR commented May 30, 2025

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

SamMazerIR and others added 30 commits May 14, 2025 15:49
@SamMazerIR SamMazerIR requested a review from HexaField June 5, 2025 21:26
@SamMazerIR SamMazerIR dismissed HexaField’s stale review June 5, 2025 21:28

all suggestions implemented

@SamMazerIR SamMazerIR added this pull request to the merge queue Jun 5, 2025
Merged via the queue into dev with commit 5a21628 Jun 5, 2025
26 checks passed
@SamMazerIR SamMazerIR deleted the IR-9782-camera-poi branch June 5, 2025 21:41
setCanvasWidth(rendererComponent.canvas.value.width)
setCanvasHeight(rendererComponent.canvas.value.height)
}, [rendererComponent.canvas, rendererComponent.needsResize])
setCanvasWidth(rendererComponent.canvas.value.clientWidth)
Copy link
Member

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)
Copy link
Member

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

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.

4 participants
0