Zylann / godot_heightmap_plugin

HeightMap terrain for Godot implemented in GDScript
Other
1.67k stars 156 forks source link

Scrollable Dialogue fix request for Android smartphones #417

Open orbiterFan opened 6 months ago

orbiterFan commented 6 months ago

(https://github.com/godotengine/godot/issues/86572#top)

Tested versions Android smartphone with res 2312 x 1080 Godot 4.1 and 4.2 for Android Zylanns heightmap-terrain-plugin 1.7.2

System information Android smartphone - res 2312 x 1080

Issue description Hi Guys

I have been looking for a wyziwyg 3d level editor for Android, and finally fired up Godot for Android. Still getting a handle on Godot, and I appreciate the clean logic. Not as menu heavy as Unreal, and still has a tiny footprint once installed.

My typical use case is to thrash out 3d ideas on my phone without a laptop or PC.

I installed Zylanns plugin on my android setup, and there are two issues.

the generate terrain dialogue overflows the screen, so I can't get to the "apply" button. Will copy Zylann in on this.

When sculpting terrain on an android phone, the terrain stays flat without changes, no matter which sculpt tool I use.

See screenshot of terrain generation dialogue. Screenshot_godotengine editor v4

Hoping you can help. Season's greetings.

Steps to reproduce Use a android smartphone with screen res of 2312 x 1080 Install Godot android 4.1 or 4.2 Install Zylanns heightmap terrain plugin 1.7.2 Follow Kasper tut on YouTube -> https://www.youtube.com/watch?v=Af1f2JPvSIs Try sculpt the terrain Nothing happens to the terrain Then Try Generate terrain Apply/cancel buttons hidden off screen

Zylann commented 6 months ago

Note that this plugin editor tools were primarily developped for desktop, I didn't have mobile platforms support in mind. I believe very few people actually use the editor on Android, despite the recent claim that it would run there (which is rather unique in the world of game engines). I don't even have a device suitable to test the Godot editor on it. There might be a number of issues happening there due to screens that are way too small and other OS-specific restrictions that I can't investigate.

Sculpting not working is a separate issue. Godot is supposed to translate input, but apparently doesnt I guess. But again it wasn't thought to work on mobile platforms. The Godot Editor deciding to have a go at running on Android is unfortunately going to create that frustration in many plugins, as the overwhelming majority of tools are meant for mouse and keyboard with a decent screen size. I can't test any of this and might boil down to the same problem, if you don't use a mouse and Godot doesn't translate touch properly, then it won't work on Android and you'll have to use a desktop computer. You, or someone having proper hardware, could have a go at doing the necessary changes to the plugin.

For some reason I can't easily look at your screenshot at full resolution (it keeps leading to a blank page). In fact I can't see it anymore at all. I'm noticing something though (from when I could see it), the UI scale of your editor seems to be higher than normal, so a lot of UIs will be too big for your screen (which is already very small). I don't know why it would do that, maybe Godot tries to select it automatically but does it wrong. You could try changing it in Editor Settings -> Interface -> Editor -> Display Scale and restart.

orbiterFan commented 6 months ago

Thanks for the advice. I guessed an android 3d editor might have some limits compared to a desktop version.

Will give your suggestion a try. Appreciate the feedback.👍