Duplicate does not work on android?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ulises
:warning: Old Version Published before Godot 3 was released.

I need to instantiate a scene containing: a staticObject, a mesh (with two surfaces) and a collisionShape, I need many instances of this scenes, but I want to change the color of the materials on the mesh, I’ve been trying to duplicate the mesh and place it of again, I have also doubled the materials and place it of again, it seems to work very well on the desktop, but the android device do not see anything :frowning: I can only see mode debug shape of physical collision and also works well, but can not see the mesh or colors, and only happens in android and ios. Any help you can give me? thanks.

Can you see any error in the logcat? That could help about what’s happening.

Zylann | 2016-10-02 14:11

no, no errors, everything runs fine, but I can not see the mesh or material, only occurs in android.

ulises | 2016-10-02 15:14

Does it works if you export your game for the desktop? (not run from the editor)

Zylann | 2016-10-02 15:28

yes, also it works by exporting

ulises | 2016-10-02 15:33

:bust_in_silhouette: Reply From: Freeman

Important question is on how may devices did you test your game?

If only on one device, then I would expect the problem to be with the graphic driver of your android device. I had a very similar problems with Galaxy Tab 2 tablet. Godot exported 2d games work great on that tablet, but anything that uses 3D runs showing either gray or black screen, with sometime visible sprites of the menu. Reduz (main developer of Godot) said, that the problem is the graphic driver of my tablet and nothing can be done about it. :frowning:
So I guess nothing can help, only buying another android device with different chipset or… producing 2D games and staying away from 3D. :slight_smile:

Thanks, I decided to copy the resources of each mesh in the editor (graphically); I guess that shows that I do not know how to do it through code :frowning: Because graphically works.

ulises | 2016-10-08 01:16