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

Offer calibration APIs for users with various DPI setups #381

Open
chapulina opened this issue Aug 17, 2021 · 0 comments
Open

Offer calibration APIs for users with various DPI setups #381

chapulina opened this issue Aug 17, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@chapulina
Copy link
Contributor

We've been having a hard time to support screens with different resolutions and DPIs. Pull request #221 has been open for a long time, but we're failing to find a single solution that applies to all use cases.

My alternative proposal is to provide users with a calibration utility so that they can manually set the scale. See for example this touchscreen calibration tool:

Desired behavior

We could offer a small executable that opens a screen with a few points for the user to click on. Then internally calculate the scaling factor and save it to a file in ~/.ignition/rendering. Every time ign-rendering is loaded, it reads from that file to set the scale. If the file doesn't exist, it uses 1.0 as the scale.

Alternatives considered

We can keep banging our heads against a general solution like we're trying in #221, but there will always be corner cases that we can't test without the hardware.

Implementation suggestion

See above.

Additional context

Related to gazebosim/gz-sim#147

@chapulina chapulina added enhancement New feature or request help wanted Extra attention is needed labels Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant