On Fri, Sep 28, 2012 at 9:37 AM, Mu Xing <[email protected]> wrote: > Hi, > > I build OSG3.0.0 on android with OpenGLES1. > I red that Environmental mapping is not working on Android. > So I convert model to earth.ive with embedded textures.(the convert tool > is VPB,on windows the earth.ive texture display no problem) > > On android ,these are the things what I did > > 1) I added "-losgdb_jpeg -ljpeg -lpng -ltiff" under "LOCAL_LDFLAGS" in > Android.mk file > 2) I added "USE_OSGPLUGIN(jpeg)" to "OsgMainApp.hpp" file. > 3) The earth.ive is in Image folder only. The Image directory is in my > mobile SD card (/mnt/sdcard/OSG/images). > 4) The "libosgdb_jpeg.a libjpeg.a libpng.a libtiff.a" file is located in > both "/home/xing/android/obj/local/armeabi" and > "/home/xing/android/obj/local/armeabi-v7a" directories. > > Why the texture is not displaying. >
I have this problem on an older HTC Desire HD phone which has Adreno 205 GPU. Make sure you don't use texture compression when converting your model to .ive. At least that was the issue for me. The same model displays fine on a Tegra 3 tablet, but on the phone only without texture compression. Different hardware has different capabilities and what we take as granted on desktop is often far from granted on a mobile GPU :( Regards, Jan
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

