Hello, i'm trying to port Irrlicht on Android with the NDK r4b... I use the svn ogl-es branch.
Working:
- GUI
- Most examples
Not implemented: advanced material
I'm searching testers (or coders) for the provided apk.
It is reported that the demo apk is working:
- HTC G1 and Hero
- HTC Desire, Nexus One, Evo 4G, HTC Incredible
- Galaxy Spica (poor performance), Galaxy S
- Archos Gen8 tablets
Code is available on gitorious: Android Irrlicht..
http://gitorious.org/irrlichtandroid/
To test code:
- connect your device with USB cable (real device recommanded)
- install the NDK r4b
- go in android-ndk-r4b/sources/
- get the git repository with
Code: Select all
git clone git@gitorious.org:irrlichtandroid/irrlichtandroid.git
- go in irrlichtandroid/project and compile c++ sources with:
Code: Select all
../../../ndk-build
Code: Select all
ant install
When you have problems:
- ndk-build clean: ndk-build have dependency problems (touch IVideoDriver.h and see no rebuild)
- adb logcat: read logs
- use -g in CFLAGS to have debug informations
Others:
- ndk-gdb is not working because of multi-thread
- many android phones have bad drivers. Andreno (GPU of Snapdragon) or PowerVR 5XX have good drivers
- When program is paused, OpenGL context is lost. Please reload all OpenGL status (textures, blending, depth test...)
- Please minimize opengl calls to have good performance. The key is batching.
To test demo apk:
download sydney.md2 et sydney.bmp and put these files in the Irrlicht/ directory of your sdcard.
download and launch the apk.
http://www.scigems.org/downloads/[/b]