3d mesh becomes ugly

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

Hi there. I’m having trouble with my 3d model. It works well on my device if I compile using the default export template for android, but it gets awful if I compile using my custom build template.
Here is the screenshot of my problem.

I built the template using this command:

scons platform=android target=release android_arch=x86 openssl=no

The default template size is 14.7Mb, and my custom template is 13.4Mb

What could be the differences between the default template and my custom build template that my model becomes like that? Am I missing something with my build command?

Thank you.

additional info, from logcat i found that my custom template produced this error:

I/godot   ( 2551): ERROR: _surface_set_arrays: Index idx out of size (total_bones).
I/godot   ( 2551):    At: drivers/gles2/rasterizer_gles2.cpp:2575.

but it didn’t happen with the default one.

Any help would be appreciated.

Thanks.

cody | 2016-04-10 00:39

I use my custom android template but I don’t have this issue.
what is your compile environment, OS, ndk, sdk?

volzhs | 2016-04-11 03:25

Him Volzhs, glad to know that you don’t have this issue, so I know that it should work fine :slight_smile:

Here are my specs:
OS: Manjaro Linux
Kernel: kernel 4.1.20
Godot master: fresh from git
SDK: android-sdk_r24.4.1
NDK: android-ndk-r11b
Env: ANDROID_HOME=“/run/media/cody/6AB5CC4D3EAF6279/arch/build/android-sdk-linux”
ANDROID_NDK_ROOT=“/run/media/cody/6AB5CC4D3EAF6279/arch/build/android-ndk-r11b/”
NDK_TARGET=“arm-linux-androideabi-4.9”
NDK_TARGET_X86=“x86-4.9”
NDK_TOOLCHAIN=“/run/media/cody/6AB5CC4D3EAF6279/arch/build/android-ndk-r11b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi”

cody | 2016-04-11 05:21

:bust_in_silhouette: Reply From: Khairul

Do you have compiled the editor too? if not, try to compile the editor from source…