On Tue, Nov 18, 2014 at 04:45:37PM +0100, Rafa Gaitan wrote:
> Hi,
> 
> I'm using eclipse and as long as the jni library is compiled is
> automatically copied and deployed within the APK. Sometimes I need to do a
> refresh of the projects (F5), to actually detect the changes and the
> compiled libraries.
> 
> In fact, reading the log the JNI library is corerctly loaded, the problem
> there should be that you don't have uploaded the model to the device. I
> haven't implemented a mechanism to read data from the assets. You can take
> a look at the code, and change it accordingly but the example expects the
> cessna.osg model in the directory:
> 
> File externalStorage = Environment.getExternalStorageDirectory();
> String path = externalStorage + "/osgAndroid/cessna.osg";
> 
> External storage usually is placed in /sdcard, but it depends on your
> device.
> 
> Regards,
> Rafa.
>

Sorry for that silly question, seems obious, that it fails if there is no
example object to be loaded. Now everything works fine.

Thank you so much for the quick help.

Julius
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to