is it that possible to use cocos2dx's GUI in irrlicht?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
yyzhou5122
Posts: 3
Joined: Wed Nov 27, 2013 3:20 am

is it that possible to use cocos2dx's GUI in irrlicht?

Post by yyzhou5122 »

we use irrlicht to do the 3d things, but irrlicht's gui is poor in mobile device( like multi-touch, table view and some animation),
so we consider cocos2dx, which has a wonderful GUI. and my question is: how much work it will take to make this two engine
work together? which version of cocos2dx is recommend?
PS: in irrlicht, the gui job is done with a function called 'guienv->drawall()' in the main-loop, so can the cocos2dx do the some thing this way?

sorry for my poor english, any comments/helps is welcome! :D

===
I post this question in cocos2dx's forum (http://www.cocos2d-x.org/forums/6/topics/44901) , I know there's lots of master guys here, so, HELP ME OUT :)
If I can make it run, I will open source the code. we had search the internet, but we can't find a good enough gui lib for irrlicht :)
HELP,HELP,HELP!
yyzhou5122
Posts: 3
Joined: Wed Nov 27, 2013 3:20 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by yyzhou5122 »

Now I can compile the cocos2dx'g gui code into an irr sample projects, make cocos2dx using irr's main loop.
now, if I don't call irr's createDevice function, the cocos2dx's helloworld run well :) , I'm using cocos2dx's UIView(IOS project) rather than irr's, the click event works greate!(disable irr's 2d,3d draw funcion as well)
but once enable the createDevice function, cocos2dx will print a ogl error :0506, I have no ideas how to solve it now, and will spend some time on it later
It will be a 'waa' thing if cocos2dx's gui code can run with irr's 3d code, if anyone get interested in this or can offer any helps, please COMMENT! :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by hybrid »

Not sure if anyone ever mixed two such libs on iOS yet. Could be a problem as the iOS driver is not yet prepared for that probably. So unless you use some side-by-side layout it might become complicated. The device setup is simply not yet ready for this - at least could be the case. Absolutely not sure about that side. The desktop systems (Linux and Windows for sure) can do this.
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by feelthat »

YES~~~

real example made from korean
https://www.youtube.com/watch?v=BIEafKA2IBM
yyzhou5122 wrote:we use irrlicht to do the 3d things, but irrlicht's gui is poor in mobile device( like multi-touch, table view and some animation),
so we consider cocos2dx, which has a wonderful GUI. and my question is: how much work it will take to make this two engine
work together? which version of cocos2dx is recommend?
PS: in irrlicht, the gui job is done with a function called 'guienv->drawall()' in the main-loop, so can the cocos2dx do the some thing this way?

sorry for my poor english, any comments/helps is welcome! :D

===
I post this question in cocos2dx's forum (http://www.cocos2d-x.org/forums/6/topics/44901) , I know there's lots of master guys here, so, HELP ME OUT :)
If I can make it run, I will open source the code. we had search the internet, but we can't find a good enough gui lib for irrlicht :)
HELP,HELP,HELP!
IrrlichtForiOS
Posts: 61
Joined: Mon Oct 08, 2012 1:46 pm

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by IrrlichtForiOS »

hybrid wrote:Not sure if anyone ever mixed two such libs on iOS yet. Could be a problem as the iOS driver is not yet prepared for that probably. So unless you use some side-by-side layout it might become complicated. The device setup is simply not yet ready for this - at least could be the case. Absolutely not sure about that side. The desktop systems (Linux and Windows for sure) can do this.
We did. But we just mixed CocoaTouch Framework with irrlicht. So we use UITableViews next to Irrlicht-Views.... It's working finde and we don't see a need to use a second gui lib...
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by feelthat »

From the Mun's Answer I share email here

I’ve used one EGL layer.
I’ve first drawn irrlicht, then cocos2d.
In addition, it is still important that OpenGL-E should recover state like glEnable, glBindTexture, etc.
Especially, remember OpenGL is a sort of State Machine.





[quote="feelthat"]YES~~~

real example made from korean
https://www.youtube.com/watch?v=BIEafKA2IBM
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by feelthat »

If anyone done this project

Please share it on github~~~~

thanks all
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by feelthat »

nice!

but~~~ use overlap will make whole screen calculate alpha pixel in system

and cocos2dx is cross platform open source can make not only GUI also 2d games~~~
IrrlichtForiOS wrote:
hybrid wrote:Not sure if anyone ever mixed two such libs on iOS yet. Could be a problem as the iOS driver is not yet prepared for that probably. So unless you use some side-by-side layout it might become complicated. The device setup is simply not yet ready for this - at least could be the case. Absolutely not sure about that side. The desktop systems (Linux and Windows for sure) can do this.
We did. But we just mixed CocoaTouch Framework with irrlicht. So we use UITableViews next to Irrlicht-Views.... It's working finde and we don't see a need to use a second gui lib...
feelthat
Posts: 194
Joined: Sat Feb 02, 2013 5:27 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by feelthat »

code is here~
https://github.com/fatalfeel/proton_cm_open
yyzhou5122 wrote:we use irrlicht to do the 3d things, but irrlicht's gui is poor in mobile device( like multi-touch, table view and some animation),
so we consider cocos2dx, which has a wonderful GUI. and my question is: how much work it will take to make this two engine
work together? which version of cocos2dx is recommend?
PS: in irrlicht, the gui job is done with a function called 'guienv->drawall()' in the main-loop, so can the cocos2dx do the some thing this way?

sorry for my poor english, any comments/helps is welcome! :D

===
I post this question in cocos2dx's forum (http://www.cocos2d-x.org/forums/6/topics/44901) , I know there's lots of master guys here, so, HELP ME OUT :)
If I can make it run, I will open source the code. we had search the internet, but we can't find a good enough gui lib for irrlicht :)
HELP,HELP,HELP!
yyzhou5122
Posts: 3
Joined: Wed Nov 27, 2013 3:20 am

Re: is it that possible to use cocos2dx's GUI in irrlicht?

Post by yyzhou5122 »

hi feelthat,
thanks for your great job!! I'm checking out your code now. nice job!!
Post Reply