Skip to content

Sandbox: fix pan speed when model was loaded via drag and drop #16590

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

Conversation

AmoebaChant
Copy link
Contributor

@AmoebaChant AmoebaChant commented May 12, 2025

There were previously 2 possible render loops depending on if you loaded from a URL or drag & drop. The previous fix for camera pan speed only applied to one of them, so if you didn't use a URL and just dragged and dropped in, you wouldn't get the corrected behavior. This change consolidates down to one render loop for both scenarios, so the camera behavior only has to be defined in one place. Specifically, FilesInput is no longer responsible for creating a render loop - it's now always done by renderingZone.tsx in either case.

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16590/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16590/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16590/merge/?snapshot=refs/pull/16590/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@AmoebaChant AmoebaChant reopened this May 12, 2025
@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16590/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16590/merge/?snapshot=refs/pull/16590/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16590/merge/

1 similar comment
@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16590/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16590/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16590/merge/?snapshot=refs/pull/16590/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 12, 2025

@AmoebaChant AmoebaChant merged commit 393832c into BabylonJS:master May 12, 2025
19 checks passed
RolandCsibrei pushed a commit to RolandCsibrei/Babylon.js that referenced this pull request May 15, 2025
…onJS#16590)

There were previously 2 possible render loops depending on if you loaded
from a URL or drag & drop. The previous fix for camera pan speed only
applied to one of them, so if you didn't use a URL and just dragged and
dropped in, you wouldn't get the corrected behavior. This change
consolidates down to one render loop for both scenarios, so the camera
behavior only has to be defined in one place. Specifically, FilesInput
is no longer responsible for creating a render loop - it's now always
done by renderingZone.tsx in either case.
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.

3 participants