Hi Koduri, I did as you said. But still textures are not displayed. > > These are the things what I did > > 1) I added "-losgdb_jpeg" under "LOCAL_LDFLAGS" in Android.mk file > 2) I added "ljpeg" under "LOCAL_LDLIBS" in Android.mk file > 3) I added "USE_OSGPLUGIN(jpeg)" to "OsgMainApp.hpp" file. > 4) The JPEG is in Image folder only. The Image directory is in my mobile > SD card (/mnt/sdcard/OSG/images). > 5) The "libosgdb_jpeg.a" file is located in both > "install/obj/local/armeabi" and "/install/obj/local/armeabi-v7a" directories
I think you need to upload your texture to the device and if necessary change the path in the .osg file, if not, for sure it will not be able to find it. Did you try to convert your model to .osgb or .ive with embedded textures?, I think for android is better to work with binary formats with textures inside. > . > > JPEG library is already installed in my system. When I gave "locate > jpeg.so" then I got the following > > > Code: > /usr/lib/ImageMagick-6.6.9/modules-Q16/coders/jpeg.so > /usr/lib/i386-linux-gnu/libjpeg.so.8 > /usr/lib/i386-linux-gnu/libjpeg.so.8.0.2 > > /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so > /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstjpeg.so > /usr/lib/i386-linux-gnu/qt4/plugins/imageformats/libqjpeg.so > /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/libjpeg.so > /usr/lib/strigi/strigiea_jpeg.so > > > > I exported the path of the libjpeg.so.8 as "export > LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/i386-linux-gnu" " > If you are working on android, then your system libraries are useless in this case, you need to build all the stuff in your android binary statically. Cheers, Rafa. -- Rafael Gaitán Linares CTO at Mirage Technologies S.L - http://www.mirage-tech.com gvSIG3D Developer - http://gvsig3d.blogspot.com
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

