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

onViewMatrixChangedObservable not firing with non-standard render loops #13551

Closed
PolygonalSun opened this issue Feb 21, 2023 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@PolygonalSun
Copy link
Contributor

PolygonalSun commented Feb 21, 2023

When the standard render loop is not used (eg. Only render when camera moves), onViewMatrixObservable isn't being properly fired. The suspected reason is because this observable is only fired during a getViewMatrix call. Generally, speaking, this will be called during the execution of the scene.render call. If this function isn't used, this sequence won't happen. There was a call made during a call to perform ray picking during pointer movement. With Lazy Picking, this redundancy is no longer present.

Proposed Fix: Add a call to the camera.update function when camera movement is detected.

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

No branches or pull requests

3 participants