Page 4 of 5

Re: Native Android port

Posted: Sat May 25, 2013 10:39 pm
by Nadro
I think that we should do the same trick as in iOS enviro - set working directory path inside a package. Anyway I'm not sure if it's possible in Android, but thanks for a report, we have to find some solution for this problem.

Re: Native Android port

Posted: Sun May 26, 2013 5:20 pm
by Darktib
Also, included shaders are not taking lights in account for the moment... If I have time (not sure), maybe I will implement lighting in it.

Re: Native Android port

Posted: Sun May 26, 2013 6:00 pm
by Nadro
Yep, built-in shaders require improvments (eg. remove discard, lighting, fog). Currently I'm working on compressed textures support for mobile platforms via PVR (version 3). PVRTC, PVRTC2, ETC1 and ETC2 formats are supported in the latest ogl-es branch, anyway code is untested (only ETC2 was tested on Radeon based platform via ARB_ES3_compatibility extension), thats why some formats may be not work properly yet. I'll do some tests today or tomorrow.

Re: Native Android port

Posted: Wed Dec 04, 2013 10:50 pm
by Agent_X
At the risk of regurgitating old questions, is there a tutorial out there for getting Irrlicht working on an Android device? On a side note I played around with using CopperCube to compile the APK from a scene (which, btw, is pretty awesome!) I have previously created two simple Android apps for work using Netbeans and NBAndroid, but I have very little desire to delve into the NDK and/or JNI. For Irrlicht I've always used Code::Blocks and GCC (and MinGW) but I'm open to using Eclipse or something else. I've also noticed the work being done by the Irrlicht team on OpenGL ES support. I'm guessing there's a near-future plan to "officially" add support for the Android platform.

Re: Native Android port

Posted: Thu Dec 05, 2013 9:22 am
by ent1ty
yes, opengl-es is the branch you wanna be using on android. there's an example 17 i think to help you get started

Re: Native Android port

Posted: Thu Dec 05, 2013 12:38 pm
by Nadro
You can also check how to run Irrlicht on Android in log for rev 4528:
- Added Android HelloWorld example. You must do following steps to run it:
1. Assign your Android SDK path to ANDROID_HOME environment variable.
2. Add Android SDK (ANDROID_HOME) and Android NDK to your PATH environment variable.
3. Go to: source->Irrlicht->Android and call "ndk-build" or "ndk-build NDEBUG=1"
4. Go to: examples->17.HelloWorld_Mobile and call "ndk-build" or "ndk-build NDEBUG=1"
5. Call "ant debug" to create package
6. Connect device to PC (with USB debugging mode ON) or turn on emulator.
7. Call "adb -d install bin/HelloWorldMobile-debug.apk" (if you use emulator please add "-e" parameter instead of "-d") to install package on your device/emulator.
8. That's all! Now you can run example.

Re: Native Android port

Posted: Thu Dec 05, 2013 7:18 pm
by Agent_X
@ entity: I guess I should have rambled less and explained more. I was specifically looking for a "How to compile an Android app using Irrlicht and Compiler X" type of tutorial.

@ nadro: That's what I was looking for! Thanks. I guess I should spend less time in the API and more time in the repository logs :lol:

Re: Native Android port

Posted: Fri Dec 06, 2013 10:21 am
by hybrid
I guess that this documentation would be better placed in some readme and in the Wiki instead ^^

Re: Native Android port

Posted: Fri Dec 06, 2013 1:06 pm
by CuteAlien
We could put it in the example itself.

Re: Native Android port

Posted: Fri Dec 06, 2013 3:00 pm
by ent1ty
While you're at it, somebody should completely rewrite the example as it's the worst Irrlicht example as far as readability and "exampleness" are concerned right now.

Subjective opinion? See for yourself: http://sourceforge.net/p/irrlicht/code/ ... e/main.cpp

To call a file with 673 lines an example is a crime against the English language.

Re: Native Android port

Posted: Fri Dec 06, 2013 4:41 pm
by CuteAlien
Hm, might be better to make that 3 examples (old windows phone which no-one uses anymore, iphone example and android example). Lot's of defines otherwise.

Re: Native Android port

Posted: Fri Dec 06, 2013 5:54 pm
by Nadro
I think that we should drop from this example content related to custom scene node and terrain. This operation will decrease count of lines a lot.

What about this tutorial in sdk? I think that readme.txt in bin/Android folder is good place for it (it will be similar to linux and osx). Anyway main readme.txt isn't bad place too.

I though about update wiki sections related to compile irr on OSX, iOS and Android. I'll do it, when I'll find some free time. Currently I'm busy with other task related to irr.

Re: Native Android port

Posted: Fri Dec 06, 2013 6:48 pm
by CuteAlien
Yeah, probably a good idea. I'll take a look at that branch also soon (within next weeks).

Re: Native Android port

Posted: Wed Jan 08, 2014 11:43 am
by CuteAlien
Example got cleaned up and it's own folder. So it's example 27 from now on. Might be reworked some more in the future as soon as I understand the stuff.

Re: Native Android port

Posted: Wed Feb 19, 2014 5:04 am
by sohamdutta13
Hi have you managed to run the irrrlicht engine without the native activity. i already have a glsurface that i am drawing on and i would like to draw the 3d model on that surface with irrlicht. the problem is that when i draw the 3d model the background becomes black. Also i am trying to accomplish this using gles 2