TrilogisIT / WorldWind_Android

WorldWind Library and Example code for the Android framework.
19 stars 10 forks source link

Problem loading shader files #9

Open dsblue opened 9 years ago

dsblue commented 9 years ago

I am having an issue loading the shaders:

8249-8273/it.trilogis.android.ww E/gov.nasa.worldwind﹕ Exception loading program shaders/SkyGradientLayer.vert, shaders/SkyGradientLayer.frag 7765-7874/it.trilogis.android.ww E/gov.nasa.worldwind﹕ Exception loading program shaders/WorldMapLayerColor.vert, shaders/WorldMapLayerColor.frag

I have tried building with each of the branches and I get some variation of that error from each. I am building in IntelliJ, but I think I have the dependencies correct. I am running the final apk on a Lollipop system, if that matters.

It looks like a file permission error, File.exists() in getFileOrResourceAsStream(String path, Class<?> c) , WWIO.java, is returning false. Any ideas?

ndorigatti commented 9 years ago

Hello, at the moment I cant' get what could be the problem. I run a custom version of the library and app on a Nexus 7 (2012) with Lollipop 5.1.1 but i have no issues. If you want to try, you can download from here http://www.trilogis.it/eLocust3D/ the android app + android data (just read the readme). If you can see the Sky it should be working. The code has done using eclipse when it was still supported, but the migration to IDEA or Android studio should not be a problem, just have a module for your sample app and the WWandroid library as a library.

Can you elaborate more on the file permission issue? File.exists() should not raise an issue, but true/false, right? Maybe it could be something related to changes in file permission access in new version, which device are you using?