have a look : AntTweakBar - GUI code for a property editor

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

have a look : AntTweakBar - GUI code for a property editor

Post by Assaf Raman »

I found this nice new GUI code today.
AntTweakBar is a small and easy-to-use C/C++ library that allows programmers to quickly add light and intuitive graphical user interface into OpenGL and DirectX based graphic programs to interactively tweak them.

Program variables can be linked to a graphical control that allows users to modify them. Thus, parameters exposed by programmers can be easily modified. They are displayed into the graphical application through one or more embeded windows called tweak bars.
this is the web site:
http://www.antisphere.com/Wiki/tools:anttweakbar

Image
Image

It is released under the zlib/libpng license.
Watch out for my OGRE related tweets here.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

Pretty interesting, could be handy for knocking out simple debug stuff if it's quick.
User avatar
irrdev
Orc
Posts: 420
Joined: Sun Oct 15, 2006 7:30 pm

Post by irrdev »

Very interesting... potentially a nice "light-weight" alternative to CEGUI. Thanks for posting the link. :)
FeedLaunch .NET RSS and ATOM feed editor- open-source and released under the GPL. Visit Feed Launch .NET Project Website hosted at sourceforge.net
silenttree
Kobold
Posts: 25
Joined: Mon Oct 09, 2006 7:07 am

nice one

Post by silenttree »

does it exist a version integrated with ogre?
User avatar
cybereality
Hobgoblin
Posts: 563
Joined: Wed Jul 12, 2006 5:40 pm
x 12

Post by cybereality »

I would also be interested in seeing this working in ogre. Seems like a nice simple gui that could be used for a game editor. Especially for simple stuff like changing a light color that could be easy tweaked without a recompile.
User avatar
tau
Silver Sponsor
Silver Sponsor
Posts: 413
Joined: Wed Feb 11, 2004 11:44 am
Location: Austin (that's kept wierd :))

Post by tau »

Interesting library.
Does zlib/libpng license permit static linking with closed source code?
User avatar
pjcast
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2543
Joined: Fri Oct 24, 2003 2:53 am
Location: San Diego, Ca
x 2

Post by pjcast »

tau wrote:Interesting library.
Does zlib/libpng license permit static linking with closed source code?
Yes.
Have a question about Input? Video? WGE? Come on over... http://www.wreckedgames.com/forum/
User avatar
CaseyB
OGRE Contributor
OGRE Contributor
Posts: 1335
Joined: Sun Nov 20, 2005 2:42 pm
Location: Columbus, Ohio
x 3

Post by CaseyB »

I forgot all about this until today, so I spent a little time working it into Ogre. I still have a long way to go to make it clean, but here's a preliminary screenie.
Image
Image
Image
User avatar
detox
Greenskin
Posts: 103
Joined: Thu Sep 07, 2006 1:13 am
Location: Ohio, USA

Post by detox »

Nice work CaseyB. How difficult was it to integrate into an Ogre viewport?
User avatar
CaseyB
OGRE Contributor
OGRE Contributor
Posts: 1335
Joined: Sun Nov 20, 2005 2:42 pm
Location: Columbus, Ohio
x 3

Post by CaseyB »

Actually not at all! To use what I have so far all you need to do is create an OgreTweakBarManager and ask it to create OgreTweakBar for you. So it'll look like this:

Code: Select all

OgreTweakBarManager *tweakManager = new OgreTweakBarManager(mSceneManager, mRenderWindow);

OgreTweakBar *tweakBar = tweakManager->createOgreTweakBar("My Ogre Tweak Bar");
Then you can set properties of the OgreTweakBar, such as color, position, size, hide / show / iconify as well as adding different controls to the OgreTweakBar. So far the only control that I've wrapped is a RealControl, that lets you enter a floating point number with options min and max values. I think this is a really nice GUI system, really light, intuitive and easy to use. It would be great for a world editor or something like that. Also, when I release the code, it will be under the same license as AntTweakBar so you can static link it if you like!
Image
Image