Tilesource image turning into black and white in release (android)

I have a tilesource containing the image with diff color boxes and used it on tilemap and on sprites. It is fine on dev build output but not in android release mode.

here is my dev build output:

on the release mode the colors turns into black and white

if you need additional info regarding this problem. please let me know. thanks

Can you please share a zip with a reprocase?

Here are the project repo:
https://github.com/Mervsz/NG-FOR

Steps to replicate:

Scenario 1:

  • Build the app on a device or emulator (must install dmengine first).
  • Click start on the main screen.
  • Check the UI if it has color on it (eg. blue, red and etc.)

Scenario 2:

  • Bundle the Application
    Project > Bundle > Android App
  • Select either 32-bit or 64-bit. Variant : “release”
  • Create Bundle
  • install on the device.
  • Check if the UI is the same with scenario 1

Other Details that I work on:
Defold version & dmengine: v1.2.162
Device version: 6.0.0 (Marshmallow)(Android)

Can you check if this also happens in desktop builds?

1 Like

@TheKing0x9 Oh. It is the same. what might possibly wrong? in my code? well it is fine in development build.

Just try converting the image to 64 bit in Photoshop or any other image editor…

Thanks @TheKing0x9. though I did not convert the image into 64 bit. The problem fix when I add dynamic colors into each tile. because initially my tiles only contains a single color.

this is my tiles initially.

I modified it into this.

after i modified it i can see the color in the release mode.

can anyone clarify the reason behind this.? I am not really sure, why it is behaving like that.

or i am being noob here. someone please enlighten me. XD.

If it is what I think it is, then it is an issue with the bit depth of the image, converting it to 16 bit (not 64 bit, sorry :grinning: ) in Photoshop solves it completely.