GUI alternatives...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
LordJonas
Posts: 9
Joined: Thu Apr 18, 2013 2:28 pm

GUI alternatives...

Post by LordJonas »

Hi...

It seems that IrrlichtGUI is far from be a good choice since it's very limited.

I would like to know if there's other options available to use with Irrlicht and if someone had experienced them.

(sorry for my english... :roll: )
jaeg
Posts: 52
Joined: Thu Jun 28, 2007 11:20 pm

Re: GUI alternatives...

Post by jaeg »

If you are using Windows there is always Visual C++ or the raw Windows API. You can embed an Irrlicht rendering window into these forms.
http://irrlicht.sourceforge.net/docu/example014.html
Computer Science Major - Ball State University
WLGfx
Posts: 9
Joined: Fri Nov 23, 2012 12:56 am

Re: GUI alternatives...

Post by WLGfx »

I've had partial success with Qt on Linux but when it came to Windows I had a few issues. Might go back to it some time and try again.

There's always wxWidgets too which I haven't yet tried out.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: GUI alternatives...

Post by Cube_ »

CEGUI is good
"this is not the bottleneck you are looking for"
lymantok
Posts: 67
Joined: Mon Dec 31, 2007 6:13 am

Re: GUI alternatives...

Post by lymantok »

I've tried a couple with Irrlicht. Started with CEGUI 0.6, which met my needs. It's evolved considerably. I think Sudi posted a working example of librocket on the forums here, which is pretty interesting. Mygui is another.

http://www.cegui.org.uk/wiki/index.php/Main_Page
http://librocket.com/wiki/documentation
http://mygui.info/
LordJonas
Posts: 9
Joined: Thu Apr 18, 2013 2:28 pm

Re: GUI alternatives...

Post by LordJonas »

I'm tring to use CEGUI with Irrlicht but it looks that there is no examples available in the net...

If someone could point me to a piece of code showing how-to use cegui and irrlicht would be nice.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: GUI alternatives...

Post by sudi »

LordJonas wrote:I'm tring to use CEGUI with Irrlicht but it looks that there is no examples available in the net...

If someone could point me to a piece of code showing how-to use cegui and irrlicht would be nice.
Just checkout the CEGUI examples on how stuff is rendered and how events are handled. Then you should be able to create an irrlicht wrapper for it.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Re: GUI alternatives...

Post by roxaz »

berkelium. with some creativity seamless experience can be created where you can directly call from c++ into js or vice-versa. html UIs are best.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: GUI alternatives...

Post by sudi »

I just downloaded cegui and it seams it already has an irrlicht renderer.

But that renderer seams to be from 2004. Maybe it works maybe it doesn't who knows. Just try it. besides there are all the other renderers so you can check how to fix it in case it is actually broken.

Edit: nvm it seams to work

Code: Select all

 
Release 0.7.9
- Bug Fix: CEGUI produced no rendering under irrlicht 1.8+
- Bug Fix: CEGUI would not build against Irrlicht 1.8+
 

Code: Select all

 
Example:
 
-------------------------
 
// create a renderer which uses the irrlicht filesystem to load data
renderer=new CEGUI::IrrlichtRenderer(device,true);
 
// create the gui
new CEGUI::System(renderer);
 
// draw everything
while(device->run())
{
    // draw only if the window is active
    if (device->isWindowActive())
    {
        driver->beginScene(true, true, video::SColor(150,50,50,50));
        //draw scene
        smgr->drawAll();
        // draw gui
        CEGUI::System::getSingleton().renderGUI();
        driver->endScene();
    }
}
 
--------------------------
 
// irrlicht event handler function
bool CEGuiTest::OnEvent(SEvent event)
{
    if(irrlichtrenderer!=0)
        return irrlichtrenderer->injectEvent(event);
    else
        return false;
}
 
--------------------------
 
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
LordJonas
Posts: 9
Joined: Thu Apr 18, 2013 2:28 pm

Re: GUI alternatives...

Post by LordJonas »

CEGUI seems very good...

I only wish the GUI Editor would be better. I'm facing very difficulties to make a simple menu with it.

I'l give a one more try and see what comes...

:roll:
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: GUI alternatives...

Post by Cube_ »

GUI editor? I just do everything through code ^^; (Far more control that way)
"this is not the bottleneck you are looking for"
Brainsaw
Posts: 1177
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: GUI alternatives...

Post by Brainsaw »

I like the idea of berkelium. Maybe I'll have a look into that ;)
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
LordJonas
Posts: 9
Joined: Thu Apr 18, 2013 2:28 pm

Re: GUI alternatives...

Post by LordJonas »

Yep...

It really seems that i'll have to write everything myself since de editor don't produce good enough results.

That's a shame since the potencial is so great...

:(
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: GUI alternatives...

Post by Cube_ »

LordJonas, Once you get used to coding over WYSIWYG editors you'll realize how much faster it is (I can damn near see the end result before compiling)

If you need the location of something just place a random gui element of the same size and note down the coordinates it ends up at (10,10,600,679 for example)
"this is not the bottleneck you are looking for"
Post Reply