[osg-users] Accessing assets from the Android APK

Colin Cochran colin at terminaleleven.com
Mon Apr 18 09:30:52 PDT 2016


Hi,

Currently I'm accessing textures / models for my scene by copying all 3d assets from my Android APK to the external storage. This way, I can refer to the assets via their fully-qualified paths on the system. This works but wastes a lot of space and now we must ask the user for permission to write to external storage as of Android M. 

Does anyone know how to "tell" osgDB to access assets from the APK (which is a really just a zip file)? Figured many others have encountered this issue before but I haven't found much on the forum.

Best,
Colin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66869#66869








More information about the osg-users mailing list