Irrlicht + SDL2 + Android

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
djoker
Posts: 39
Joined: Thu Dec 22, 2005 10:25 pm
Location: Portugal

Irrlicht + SDL2 + Android

Post by djoker »

hi folks
i'm not god with word's but this is my project , irrlicht full integrated with SDl2 usig the port of Irrlich for android.
the idea is to manage windows/input/assets/audio with sdl2 and the render with irrlicht
and use the java from sdl , i full integrate the admob sdk

this is the demo
https://play.google.com/store/apps/deta ... r.irrteste

https://github.com/akadjoker/IrrlichtSDL2

demo with haxe

https://github.com/akadjoker/HaxeIrrTeste
Never underestimate the power of Delphi....Ignorance is bliss, but knowledge is power...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Irrlicht + SDL2 + Android

Post by hybrid »

So what's the difference to the SDL device that we already offer within Irrlicht? It should already provide all those things and should hopefully work with android as well!?
FloatyBoaty
Posts: 32
Joined: Thu Aug 21, 2014 11:39 pm

Re: Irrlicht + SDL2 + Android

Post by FloatyBoaty »

hybrid wrote:So what's the difference to the SDL device that we already offer within Irrlicht? It should already provide all those things and should hopefully work with android as well!?
anything written for pre SDL 1.3 (aka, SDL2) will not work with SDL2. And, SDL2 is a better implementation.

Also, I'm looking for some help with my SDL2 port http://irrlicht.sourceforge.net/forum/v ... rt#p289656.
Assets aren't loading on Android.
@djoker?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Irrlicht + SDL2 + Android

Post by Nadro »

I also doesn't see any advantage for SDL2 over our current solutions - native window managers. SDL2 for Android require JAVA activity and imho it's a worse solution than our based just on NDK. Of course a some devices like a X11 and iOS need some more improvements, but we're on good way. Anyway I think that we should drop our SDL1 based device and replace it by SDL2 based device.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
FloatyBoaty
Posts: 32
Joined: Thu Aug 21, 2014 11:39 pm

Re: Irrlicht + SDL2 + Android

Post by FloatyBoaty »

Nadro wrote:I also doesn't see any advantage for SDL2 over our current solutions - native window managers. SDL2 for Android require JAVA activity and imho it's a worse solution than our based just on NDK. Of course a some devices like a X11 and iOS need some more improvements, but we're on good way. Anyway I think that we should drop our SDL1 based device and replace it by SDL2 based device.
It is true that the current implementations work well, but I've been having a lot of trouble just adding audio to an application on Android. Developing a native app that can run on more than just Android (or also run on Android) is a HUGE pain. By having an SDL2 device I can ignore what platform I am developing for.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Irrlicht + SDL2 + Android

Post by Nadro »

You can use OpenAL which works on wide range of platforms.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
FloatyBoaty
Posts: 32
Joined: Thu Aug 21, 2014 11:39 pm

Re: Irrlicht + SDL2 + Android

Post by FloatyBoaty »

Nadro wrote:You can use OpenAL which works on wide range of platforms.
I was going to use PortAudio... but, whatever, I've got SDL2 up and rolling nicely. I just need to get the draw area to match the screen size....
FloatyBoaty
Posts: 32
Joined: Thu Aug 21, 2014 11:39 pm

Re: Irrlicht + SDL2 + Android

Post by FloatyBoaty »

SDL2 latest on pastebin: http://pastebin.com/0qTTxDaA
GL on Linux and GLES1&2 on Android has been tested and working.
FloatyBoaty
Posts: 32
Joined: Thu Aug 21, 2014 11:39 pm

Re: Irrlicht + SDL2 + Android

Post by FloatyBoaty »

The SDL2 patch is complete.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Irrlicht + SDL2 + Android

Post by Nadro »

Thanks, in upcoming days I'll try to integrate this patch with ogl-es branch.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht + SDL2 + Android

Post by CuteAlien »

Please don't do that yet Nadro. If we merge that before merging the ogl-es branch into trunk that means merging will get even harder than it already is. And unfortunately it is already hell to merge the branches and getting ogl-es back into trunk is scarying me already as it is now :-) (I already needed a full day just to get the simple patches of the last 2-3 months merged - and that was in the easy direction of trunk to ogles). For now let's keep that branch as close to trunk as still possible until we figure out how to merge it back. After that we can add new drivers and kick drivers out and so on.
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
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Irrlicht + SDL2 + Android

Post by Nadro »

OK, no problem. I'll wait :)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Irrlicht + SDL2 + Android

Post by hendu »

(I already needed a full day just to get the simple patches of the last 2-3 months merged - and that was in the easy direction of trunk to ogles)
Joys of SVN ;)
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Irrlicht + SDL2 + Android

Post by Nadro »

Yes, imho GIT is much better in this case.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht + SDL2 + Android

Post by CuteAlien »

Yeah, it could handle some of the problems better probably. Thought not sure if it really can handle stuff like that code which we add in opengl driver in trunk belongs in the contextmanager in the other branch. I guess main advantage is that github helps to have a clean workflow by default. So you always get patches for specific versions, while in this case we already don't know anymore a week later for which version that patch was unless the author mentions it.
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
Post Reply