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

[Feature Request] Auto adjust sample distances when FPS is dropping #1775

Open
daker opened this issue Jan 23, 2025 · 1 comment
Open

[Feature Request] Auto adjust sample distances when FPS is dropping #1775

daker opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@daker
Copy link
Contributor

daker commented Jan 23, 2025

What feature or change would you like to see made?

in vtk.js, the volumeMapper has a feature called AutoAdjustSampleDistances, which allows you to interact with the volume even if the FPS is dropping, vtk.js will adjust the sampling until it gets the desired FPS.

You can do that by calling renderWindow.getInteractor().setDesiredUpdateRate(30)

https://github.com/Kitware/vtk-js/blob/d69dde4d69d2eab1ff9d46dd68bf2c5188bd3221/Sources/Rendering/OpenGL/VolumeMapper/index.js#L1276-L1302

Volview logic

https://github.com/Kitware/VolView/blob/main/src/utils/volumeProperties.ts#L120-L146

Example using Volview

Enregistrement.2025-01-23.101245.mp4

Why should we prioritize this feature?

This feature will allow the user to interact with 3D volume even if the FPS is dropping

Copy link
Member

sedghi commented Jan 23, 2025

Pretty cool, thanks!

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

No branches or pull requests

2 participants