TwOgre - An AntTweakBar Integration
- CaseyB
- OGRE Contributor
- Posts: 1335
- Joined: Sun Nov 20, 2005 2:42 pm
- Location: Columbus, Ohio
- x 3
- Contact:
TwOgre - An AntTweakBar Integration
<edit>
The project has moved to Bitbucket:
https://bitbucket.org/jacmoe/twogregui
Update your links/bookmarks.
</edit>
I have spent a little bit of time integrating the AntTweakBar GUI System, discussed in this thread into Ogre. It's not the prettiest thing, but it's very easy to use and rather fully featured. It would be great for some kind of an editor. I just got all of the appropriate variable type wrapped up so I thought I'd post some pics and a video. I still need to get callbacks working, right now you'd have to poll the values, and I want to build AntTweakBar and TwOgre into the same static lib or dll, so you'd only need the one. I'll release everything once that's done! Now on to the eye candy!
And here's the link to the video:
www.MooProductions.org/TwOgre.avi
The project has moved to Bitbucket:
https://bitbucket.org/jacmoe/twogregui
Update your links/bookmarks.
</edit>
I have spent a little bit of time integrating the AntTweakBar GUI System, discussed in this thread into Ogre. It's not the prettiest thing, but it's very easy to use and rather fully featured. It would be great for some kind of an editor. I just got all of the appropriate variable type wrapped up so I thought I'd post some pics and a video. I still need to get callbacks working, right now you'd have to poll the values, and I want to build AntTweakBar and TwOgre into the same static lib or dll, so you'd only need the one. I'll release everything once that's done! Now on to the eye candy!
And here's the link to the video:
www.MooProductions.org/TwOgre.avi
- betajaen
- OGRE Moderator
- Posts: 3447
- Joined: Mon Jul 18, 2005 4:15 pm
- Location: Wales, UK
- x 58
- Contact:
- celic
- Gnome
- Posts: 363
- Joined: Wed Mar 23, 2005 11:05 am
- Location: Chisinau/Moldova
- Contact:
- Kencho
- OGRE Retired Moderator
- Posts: 4011
- Joined: Fri Sep 19, 2003 6:28 pm
- Location: Burgos, Spain
- x 2
- Contact:
-
- OGRE Expert User
- Posts: 421
- Joined: Fri Jan 07, 2005 9:49 pm
- Location: UK
- x 2
- Contact:
- Purrpledone
- Halfling
- Posts: 45
- Joined: Sun Mar 11, 2007 3:11 am
- Location: Toronto, Canada
- Contact:
- CaseyB
- OGRE Contributor
- Posts: 1335
- Joined: Sun Nov 20, 2005 2:42 pm
- Location: Columbus, Ohio
- x 3
- Contact:
- detox
- Greenskin
- Posts: 103
- Joined: Thu Sep 07, 2006 1:13 am
- Location: Ohio, USA
- Contact:
- Assaf Raman
- OGRE Team Member
- Posts: 3092
- Joined: Tue Apr 11, 2006 3:58 pm
- Location: TLV, Israel
- x 76
- sinbad
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
- Contact:
- nikki
- Old One
- Posts: 2730
- Joined: Sat Sep 17, 2005 10:08 am
- Location: San Francisco
- x 13
- Contact:
- CaseyB
- OGRE Contributor
- Posts: 1335
- Joined: Sun Nov 20, 2005 2:42 pm
- Location: Columbus, Ohio
- x 3
- Contact:
Absolutely true! This fills a different need than CEGUI, BetaGUI and SimpleGUI, it's not terribly pretty, but is very easy to set up and has great flexibility as far as how to group things and collapse groups, etc.nikki wrote:I think it is better off used for tweaking (hence its name) and quick adjustment of variables like in test applications and level editors, whereas CEGUI has more features such as buttons, dialogs etc. So, we really can't compare them.
- CaseyB
- OGRE Contributor
- Posts: 1335
- Joined: Sun Nov 20, 2005 2:42 pm
- Location: Columbus, Ohio
- x 3
- Contact:
- CaseyB
- OGRE Contributor
- Posts: 1335
- Joined: Sun Nov 20, 2005 2:42 pm
- Location: Columbus, Ohio
- x 3
- Contact:
Ok, I integrated the AntTweakBar code and my code all into the same project and created four build targets
You can get it from an SVN repo hosted by Google:
svn checkout http://twogregui.googlecode.com/svn/trunk/ twogregui
SETUP
If you use the Ogre SDK then you should be all set. TwOgre should build right out of the box for you.
If you Build Ogre from Source then you'll need to add the OGRE_SRC environment variable to point to your ogrenew folder. Then TwOgre should build with no problems.
- Release
Debug
Static_Release
Static_Debug
You can get it from an SVN repo hosted by Google:
svn checkout http://twogregui.googlecode.com/svn/trunk/ twogregui
SETUP
If you use the Ogre SDK then you should be all set. TwOgre should build right out of the box for you.
If you Build Ogre from Source then you'll need to add the OGRE_SRC environment variable to point to your ogrenew folder. Then TwOgre should build with no problems.
- Kencho
- OGRE Retired Moderator
- Posts: 4011
- Joined: Fri Sep 19, 2003 6:28 pm
- Location: Burgos, Spain
- x 2
- Contact:
-
- Kobold
- Posts: 39
- Joined: Sat Sep 23, 2006 10:09 am
Ogre 1.4.0 (Eihort) with VS2005 SP1 [debug-mode] and is crashing on Line 38 / OgreApp.cpp and the Ogre.log is Ok!
Code: Select all
Line 38 / OgreApp.cpp:
Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
Code: Select all
Error dialog:
Unhandled exception at 0x106ea7d6 in Example_WorldEditor.exe: 0xC0000005: Access violation reading location 0x0000005c.
Code: Select all
Ogre.log:
12:19:13: *-*-* OGRE Initialising
12:19:13: *-*-* Version 1.4.0 (Eihort)
12:19:13: Creating resource group Bootstrap
12:19:13: Added resource location 'media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
12:19:13: Added resource location 'media' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/fonts' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/materials/programs' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/materials/scripts' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/materials/textures' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/models' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/overlays' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/particle' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/gui' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
12:19:13: Added resource location 'media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
12:19:13: Added resource location 'media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
12:19:13: Added resource location 'media/packs/dragon.zip' of type 'Zip' to resource group 'General'
12:19:13: Added resource location 'media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
12:19:13: Added resource location 'media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
12:19:13: Added resource location 'media/packs/skybox.zip' of type 'Zip' to resource group 'General'
12:19:14: Parsing scripts for resource group Autodetect
12:19:14: Finished parsing scripts for resource group Autodetect
12:19:14: Parsing scripts for resource group Bootstrap
12:19:14: Parsing script OgreCore.material
12:19:14: Parsing script OgreProfiler.material
12:19:14: Parsing script Ogre.fontdef
12:19:14: Parsing script OgreDebugPanel.overlay
- syedhs
- Silver Sponsor
- Posts: 2703
- Joined: Mon Aug 29, 2005 3:24 pm
- Location: Kuala Lumpur, Malaysia
- x 51
Okay I have got it running, but I have to change the followings:-
Listener.cpp
Your OIS version is not the same as mine, not sure which is more recent.
And in plugins.cfg, change the pluginfolder to wherever you store it.
Nice! Btw, cant we edit the value using keyboard directly?
Listener.cpp
Code: Select all
...
if(mInputManager->numMice() > 0)
...
if(mInputManager->numKeyboards() > 0)
And in plugins.cfg, change the pluginfolder to wherever you store it.
Nice! Btw, cant we edit the value using keyboard directly?
- CaseyB
- OGRE Contributor
- Posts: 1335
- Joined: Sun Nov 20, 2005 2:42 pm
- Location: Columbus, Ohio
- x 3
- Contact:
Doh, sorry about that's because I am using the CVS Head version of OIS. I'll fix that. And good catch on the plugins.cfg, I'll put that in the original post. You can add Keyboard shortcuts, I forgot about that, I'll update the example tonight.syedhs wrote: Your OIS version is not the same as mine, not sure which is more recent.
And in plugins.cfg, change the pluginfolder to wherever you store it.
Nice! Btw, cant we edit the value using keyboard directly?
-
- Kobold
- Posts: 35
- Joined: Sun Mar 25, 2007 10:52 am