-
Notifications
You must be signed in to change notification settings - Fork 91
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
Scale factor for short vertices calculation #537
Comments
Could use device dpi as guide and set |
On my App I use COORD_SCALE = 1 |
Default On Android the scale |
I have only Full HD Devices! |
You are right! I will check again. But with COORD_SCALE = 1 is all fine. On Note 4! |
I'll test with 4k on Monday. |
It looks good on Galaxy Note4 Also on iOS (as dependency on my own App! iOS-example can't run on AndroidStudio) |
Debug Breakpoit : CanvasAdapter.dpi = 499.99872 |
We have to find a workaround to declare Or find a way to handle them dynamically. I only mention But I tested on 4k, but I only have a PPI of 157. So the clip is not enlarged and wouldn't be updated cause constants remain the same. This especially affects paths (and textures) with tilt up to 80 degree. So paths are cut there with regular PathLayer. Only as question: is there a reason why low dpi devices (or very large devices with medium dpi, like 4k) cannot use 4 as |
No particular, just usually prefer to not change defaults that are already well / long tested. |
First: Second: |
I meant |
If developer of an app "knows" and changes an "advanced" parameter, why will change it again and possibly break it? It's not logical and we're not here to cover such "strange" workflows. Just improving things without complicate the library more. |
@Gustl22 after debugging the variable values while the samples are running, I cannot find any issues with current implementation.
Also those variables can be overridden via |
Calculation was added on Android: regular + libGDX implementations. Desktop or Browser may need another check, due to different dpi / resolution. |
Sorry my bad! I thought it was added to all environments. I changed the values in Can we add this to Desktop, too, with lower dpi values? |
Sure, I don't have a 4K screen (or similar) available to test now, do we need to use also dpi there and which threshold? |
Note that tilt 80 is not default and we're talking here about default values. We just need sane defaults testing with inside default settings. |
BTW I tested on an Nexus 9 with above specs and didn't see something strange with default settings. |
So you think the threshold could be if smaller dimension is over 1080px? |
That sounds good. For current 65 degree I can't see any issues (with all devices). |
I pushed new implementation for Android and globally for all libGDX based platforms. |
Works nice! I noticed some clipping on my Phone (1080 width) with higher tilt, but I think we cannot cover all cases and certainly it's customizable, so it's fine! Thanks :) |
Can provide some automatic
MapRenderer.COORD_SCALE
in high resolution screens, e.g. inMapView
initialization, like do currently withTile.SIZE
.Preferably that should be optional via
Parameters
, so that users can use their own in the apps.Related to #343.
The text was updated successfully, but these errors were encountered: