Port on Android

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
ellis2323
Posts: 37
Joined: Fri Feb 05, 2010 5:33 pm

Port on Android

Post by ellis2323 »

Hello, i'm trying to port Irrlicht on Android with the NDK 1.6... I use the svn ogl-es branch.

Work in progress:
- the port is on the way
- i haved compiled all the code
- i see sidney with textures


Code is available on gitorious: Android Irrlicht..

http://gitorious.org/irrlichtandroid/

To test code:
- install the NDK 1.6
- go in android-ndk-1.6_r1 and:
make APP=irrlicht
- go in apps/irrlicht/project and
ant clean install
- please put sydney.md2 and sydney.bmp in /sdcard

To test demo apk:
download sydney.md2 et sydney.bmp and put these files in the root of your sdcard.
download and launch the apk.
http://www.scigems.org/downloads/
Last edited by ellis2323 on Sun Feb 07, 2010 2:58 pm, edited 8 times in total.
CuteAlien
Admin
Posts: 9930
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Good luck :-) Having an Android port would be great.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Yeah, if I understand correctly programming Android must be done with Java. Essentially it wouldn't be too difficult to port the current Irrlicht over to Java, in fact it has been done before, but it will take quite a bit of time.
TheQuestion = 2B || !2B
CuteAlien
Admin
Posts: 9930
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Hm, no - I think that was only for the first NDK version. I read that by now they allow running native applications also.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

CuteAlien wrote:Hm, no - I think that was only for the first NDK version. I read that by now they allow running native applications also.
Oh, you're right! That's pretty cool. Now I'm even more interested in throwing around some ideas with the Android NDK.
TheQuestion = 2B || !2B
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The Android SDK uses Java, but using the NDK you can add C-based extensions.
zet.dp.ua
Posts: 66
Joined: Sat Jul 07, 2007 8:10 am

Post by zet.dp.ua »

Porting for Android is much harder than for iPhone:
- not every opengl function is implemented;
- wchar_t functions don't work;
- no direct file access;
- no native debugging !!!;
- etc.
Rotating 100 scaled 128x128 textured triangles gives ~30 fps on my Samsung i5700.
Also working on porting to android from iphone port :)
It seems that porting for android is much closer to j2me games: a lot of different devices, low performance, feature-cuts...
Post Reply