melonDS-android icon indicating copy to clipboard operation
melonDS-android copied to clipboard

Possible to expose "Improved polygon splitting" setting? This is needed to prevent openGL rendering errors in Pokemon Diamond, Pearl, Platinum, Heartgold and Soul Silver

Open Starlightbotanist opened this issue 3 months ago • 3 comments

  • Device model: Pixel 6 and Odin 2
  • Android version: 16 and 13

Problem:
When using the openGL renderer on Pokemon Diamond, Pearl, Platinum, Heartgold and Soul Silver, you can see some gaps between polygons that make up the ground. This happens on the desktop version of MelonDS, but can be avoided by enabling "Improved polygon splitting". This setting is mentioned in rafaelvcaetano/melonDS-android-lib but doesn't look to be exposed in the UI.

Steps to reproduce (if applicable):

  1. Set the renderer to openGL. Happens at any resolution.
  2. Start a new game in any of the pokemon games listed above.
  3. Everything will look ok, until you get outside. You will see gaps in the polygons which make up the ground/grassy areas. You can affect the gap by changing the resolution, some resolutions look better than others, but it is visible on all resolutions to some degree.
  4. As stated above, the windows builds of melonDS have this issue also, but it's fixed by enabling "Improved Polygon Splitting".

In the screenshot, you can see the issue as thin vertical black lines and dots in the grass/dirt.

Image

Starlightbotanist avatar Sep 29 '25 18:09 Starlightbotanist

Well, let's just say there are some issues in the Android implementation 😅 That's why that option is not enabled right now. Image

rafaelvcaetano avatar Sep 30 '25 18:09 rafaelvcaetano

Lol, that's some fun looking grass patterns 🤣 I appreciate you taking a look at it.

Starlightbotanist avatar Sep 30 '25 21:09 Starlightbotanist

Are there any updates to this being fixed? I see it working on the windows version

nolongerhuman4544 avatar Nov 23 '25 21:11 nolongerhuman4544