Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 22-Sep-2015 19:43:19

Siris
Member
Registered: 6-Aug-2015
Posts: 10

Android: Terrain isn't shown on Surf Tab

Hi.
I have a problem with my android app created in OpenSpace. My terrain does not appear when i install my apk file to my Surftab Breeze 10.1 quad. On windows everything is working fine. I loaded a texture to my terrain with visual scripting on the beginning of the scene and my dragon should move to the destination when i touch the terrain, but well, there's no terrain. Is this an device problem or (if not) can i solve this problem with a solution? Thanks for any help.

PS: OpenSpace is really great and easy, thanks for it wink

Last edited by Siris (22-Sep-2015 19:44:18)

Offline

#2 23-Sep-2015 08:32:52

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Android: Terrain isn't shown on Surf Tab

Hello,

- check the texture formats on the terrain (avoid DDS file format for android compatibility)
- check the material, if you use shader you must create an opengl es shader.
- did you test on another android device ?
- remove all additional lights and set only a directional, on android only 3 lights at the same time should work on an object because of the shader generation system in Ogre.
- you can also send me the scene so I could check what could be the issue

Offline

#3 27-Sep-2015 15:45:24

Siris
Member
Registered: 6-Aug-2015
Posts: 10

Re: Android: Terrain isn't shown on Surf Tab

Hi arkeon and sorry for my late answer, i had much to do in the last time...
I've tried the 4 ways, but it don't works. Anyway, i will try to make a new project and i will give you my feedback later. I think my scene is too easy to send it to you right now.

Offline

#4 30-Sep-2015 15:26:59

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Android: Terrain isn't shown on Surf Tab

If you can send a simple scene where the problem occur it could be easier to debug and find the issue

Offline

#5 1-Oct-2015 16:46:04

Siris
Member
Registered: 6-Aug-2015
Posts: 10

Re: Android: Terrain isn't shown on Surf Tab

Hi arkeon.
I will pack the project into a .zip. Which files shall i pack into the .zip? I don't know all the files, but the assets folder is of course under the files for the .zip. I've tested my scene with a new camera, but the terrain doesn't appears. One more question: Where can i send it to you?
Thanks.
Siris

Offline

#6 1-Oct-2015 17:30:00

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Android: Terrain isn't shown on Surf Tab

Hello

just zip the export/android/your project/package/assets/partition folder, I should find all what I need in it

Offline

#7 3-Oct-2015 13:34:36

Siris
Member
Registered: 6-Aug-2015
Posts: 10

Re: Android: Terrain isn't shown on Surf Tab

Hi arkeon.
I sent you an email with a dropbox link that contains my project. Unfortunality, i didn't found the folder you said. Therefore i zipped the complete project. I deleted the apk from around 20 mb.

Offline

#8 3-Oct-2015 14:08:21

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Android: Terrain isn't shown on Surf Tab

Ok thanks I'll look at it

Offline

#9 3-Oct-2015 14:39:04

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Android: Terrain isn't shown on Surf Tab

ok so I just did a test and could see the terrain on android device.

first do not use viewports plugit if you don't need it here.

second the materials are not good (check the material files generated in the asset folder)
remove the lines
            cull_hardware none
            cull_software none
and set an ambient color otherwise the model wont show without correct lights at all

you should also set the textures here, but it is working with the plugit anyway but this is not clean.

Offline

#10 3-Oct-2015 16:08:52

Siris
Member
Registered: 6-Aug-2015
Posts: 10

Re: Android: Terrain isn't shown on Surf Tab

Hm, strange, my android export doesn't work anymore. It's the keystore file again:
---------------------------
Error
---------------------------
The APK file was not generated, check the signing password and file.
---------------------------
OK   
---------------------------

I've done these points:
"first do not use viewports plugit if you don't need it here.

second the materials are not good (check the material files generated in the asset folder)
remove the lines
            cull_hardware none
            cull_software none"

I imported a new object to the scene, too. Maybe i just need to use the solidify modifier in Blender. I don't know, but now i can't test my project on android.

Offline

#11 3-Oct-2015 16:57:58

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Android: Terrain isn't shown on Surf Tab

I made some changes for the next release, the android export error is now more verbose.

until then check the files names. verify the files use only standard character, the aapt tool for android do not allow accents or special characters.

you can also try to re create the key in case the password is bad

Offline

#12 3-Oct-2015 17:43:09

Siris
Member
Registered: 6-Aug-2015
Posts: 10

Re: Android: Terrain isn't shown on Surf Tab

Okay, thank you arkeon, i will wait for it, and in the meanwhile, i will prepare my project with blender wink

Offline

Board footer

Powered by FluxBB