Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

GUI solutions


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
11 replies to this topic

#1 Hodgeka   Members   -  Reputation: 101

Like
0Likes
Like

Posted 28 October 2011 - 11:56 PM

Hi,
I havea basic particle system written with OpenGL and glut using c++. I want to implement a basic GUI over it for real-time editing of variables that effect the particle system. How would you suggest doing this? (what libraries, etc)

Ad:

#2 Chris_F   Members   -  Reputation: 745

Like
0Likes
Like

Posted 29 October 2011 - 12:35 AM

You could have a look at Berkelium.

It's basically the Chromium browser as a library that renders to a texture. You could design all of your GUI using HTML. If you have experience with web programming, this may be advantageous.

#3 0x3a   Members   -  Reputation: 109

Like
0Likes
Like

Posted 29 October 2011 - 12:49 AM

You can take a look at this opensource project -> http://boxesproject.sourceforge.net/
When I got stuck writing my own library I looked at this one.
If I've helped you in any way please push the reputation button, thanks!

Abstraction is my choice of words.
Portfolio: http://www.0x3a.com/
Blog: http://blog.0x3a.com/

#4 Hodgeka   Members   -  Reputation: 101

Like
0Likes
Like

Posted 30 October 2011 - 03:21 AM

Thanks for the responses! I'll check out the boxes project. I don't know much about web design, so I'm not sure about berkelium. How viable is writing my own GUI? Are there common approaches to GUI with OpenGL?

#5 haegarr   Members   -  Reputation: 1773

Like
0Likes
Like

Posted 30 October 2011 - 03:52 AM

There is also AntTweakBar, a solution made especially for cases like this one.

#6 Hodgeka   Members   -  Reputation: 101

Like
0Likes
Like

Posted 30 October 2011 - 07:57 PM

Wow, thanks Haegarr that is pretty much exactly what I was looking for! I'm still curious about common GUI solutions though. What would I want to do for an in-game UI?

#7 Hodgeka   Members   -  Reputation: 101

Like
0Likes
Like

Posted 01 November 2011 - 08:14 AM

Many people have suggested cegui and qt to me. Do any of you have experience with these? What would you suggest?

#8 smasherprog   Members   -  Reputation: 416

Like
0Likes
Like

Posted 01 November 2011 - 08:50 AM

Many people have suggested cegui and qt to me. Do any of you have experience with these? What would you suggest?


Both of those UI's are fine, but both are extremely bloated and quite involved in order to actually get running. AntTweakbar is extremely simple (literally 5 lines of code can get you started) and powerful as a value (number) editor. The down side to antweakbar is that its rendering is slow and it uses alot of CPU time. GWEN is a great UI because it is simple and contains alot of functionality, check it out at http://code.google.com/p/gwen/
Wisdom is knowing when to shut up, so try it.
--Game Development http://nolimitsdesigns.com: Reliable UDP library, Threading library, Math Library, UI Library. Take a look, its all free.

#9 RobTheBloke   Members   -  Reputation: 1263

Like
0Likes
Like

Posted 01 November 2011 - 11:56 AM

Both of those UI's are fine, but both are extremely bloated and quite involved in order to actually get running.


I wouldn't describe Qt as bloated or particularly involved to get running, because well, it isn't. It could more accurately be described as having a bit more functionality than needed in this case....

#10 Chris_F   Members   -  Reputation: 745

Like
0Likes
Like

Posted 01 November 2011 - 12:36 PM

I wouldn't describe Qt as bloated or particularly involved to get running, because well, it isn't. It could more accurately be described as having a bit more functionality than needed in this case....


Qt is an extensive application framework. It's comparable to something like .NET. If you are already using it, that's one thing, but to pick up a dependance that big just for one of it's features...

#11 carangil   Members   -  Reputation: 405

Like
0Likes
Like

Posted 01 November 2011 - 01:57 PM

I've successfully mixed Qt GUI and OpenGL in the same app. It works pretty well, following this guide : http://doc.qt.nokia.com/qq/qq26-openglcanvas.html

However, I do give the warning that Qt really really wants to be the 'boss' of the app. That is, if you have a Qt app, and want to render GL, and mix Qt Widgets with GL, that works great. But if you have an existing GL program that opens a window and already does all that 'stuff', trying to integrate in Qt will be a big pain.



#12 Hodgeka   Members   -  Reputation: 101

Like
0Likes
Like

Posted 02 November 2011 - 06:00 AM


Many people have suggested cegui and qt to me. Do any of you have experience with these? What would you suggest?


Both of those UI's are fine, but both are extremely bloated and quite involved in order to actually get running. AntTweakbar is extremely simple (literally 5 lines of code can get you started) and powerful as a value (number) editor. The down side to antweakbar is that its rendering is slow and it uses alot of CPU time. GWEN is a great UI because it is simple and contains alot of functionality, check it out at http://code.google.com/p/gwen/


Thanks for the suggestion! I got gwen up and running last night, and it seems like it will be able to do everything that I need as of now. =D




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS