TwOgre - An AntTweakBar Integration

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!

Re: TwOgre - An AntTweakBar Integration

Postby tdev » Wed Aug 24, 2011 9:59 am

duststorm wrote:On the other hand, some might consider menus dropping shadows a feature rather than a bug ;)

not that way as the shadows that were dropped were distorted and alike.
User avatar
tdev
Silver Sponsor
Silver Sponsor
 
Posts: 244
Kudos: 14
Joined: 12 Apr 2007
Location: Germany

Re: TwOgre - An AntTweakBar Integration

Postby ladzin » Wed Feb 15, 2012 11:46 am

Hey,

I just tried to use TwOgre, but I'm having some issues with CMake, looks like a missing file...

CMake Error: File c:/edit/ogre/twogre_src/twogregui/cmake/templates/TwOgre.pc.in does not exist.
CMake Error at CMakeLists.txt:151 (CONFIGURE_FILE):
configure_file Problem configuring file

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory c:/edit/ogre/twogre_src/twogregui


The second one looks like Boost is required -- I don't have it installed and I'd prefer not having to use it. Is it really required by TwOgre (why)?
ladzin
Gnoblar
 
Posts: 7
Kudos: 0
Joined: 11 May 2008

Re: TwOgre - An AntTweakBar Integration

Postby jacmoe » Thu Mar 29, 2012 6:51 pm

The project has moved to Bitbucket:

https://bitbucket.org/jacmoe/twogregui

Would make it easier if anyone likes to contribute as it's easier to create forks and issue pull requests.
Update your links/bookmarks. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC 8-10, Code::Blocks and KDevelop.
OgreAssimpConverter - command-line to convert models to Ogre format.
TwOgreGUI - wrapper for AntTweakBar GUI library.
I accept donations | Me on Google+
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 21024
Kudos: 161
Joined: 22 Jan 2004
Location: Denmark

Re: TwOgre - An AntTweakBar Integration

Postby AshMcConnell » Sat Sep 01, 2012 8:28 am

I know this is a bit of an old topic, but thanks for this! I'm going to try and integrate it into my engine, should make tweaking and debugging a much more pleasant experience!

All the best,
Ash
User avatar
AshMcConnell
Orc
 
Posts: 450
Kudos: 6
Joined: 14 Dec 2007
Location: Northern Ireland

Re: TwOgre - An AntTweakBar Integration

Postby jacmoe » Wed Sep 12, 2012 10:59 pm

The project lives - glad that it's being useful to others besides me. :)

It's also going to receive updates in a month or two. Mainly logical error fixing.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC 8-10, Code::Blocks and KDevelop.
OgreAssimpConverter - command-line to convert models to Ogre format.
TwOgreGUI - wrapper for AntTweakBar GUI library.
I accept donations | Me on Google+

For this message the author jacmoe has received kudos
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 21024
Kudos: 161
Joined: 22 Jan 2004
Location: Denmark

Re: TwOgre - An AntTweakBar Integration

Postby AshMcConnell » Sun Sep 16, 2012 2:05 pm

Hehe, definitely useful! I'm having a bit of a problem. Is there a way to only render to the main render target? I should know this, but I've been away from Ogre from a while and I'm a little rusty.

It's showing on my Env Map and Mirrors like this: -

Image

Thanks again Jacmoe and CaseyB!

All the best,
Ash
User avatar
AshMcConnell
Orc
 
Posts: 450
Kudos: 6
Joined: 14 Dec 2007
Location: Northern Ireland

Re: TwOgre - An AntTweakBar Integration

Postby syedhs » Sun Sep 16, 2012 5:24 pm

One quick way is to disable overlay for the mirror viewports (Viewport::setOverlaysEnabled) - but that will only work if TwOgre is derived from OverlayElement (if I am not mistaken). Another is to register as viewport listener, and check if the viewports (car mirror) are rendering, then you want to hide the TwOgre object.
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
User avatar
syedhs
Silver Sponsor
Silver Sponsor
 
Posts: 2626
Kudos: 42
Joined: 29 Aug 2005
Location: Kuala Lumpur, Malaysia

Re: TwOgre - An AntTweakBar Integration

Postby jacmoe » Sun Sep 16, 2012 11:25 pm

It doesn't use overlays at all.
I think it uses render queue events - so so.. I'm away from the source so I'm foggy.. :p
If it's not tied to a viewport then it could probably use a patch/change.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC 8-10, Code::Blocks and KDevelop.
OgreAssimpConverter - command-line to convert models to Ogre format.
TwOgreGUI - wrapper for AntTweakBar GUI library.
I accept donations | Me on Google+
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 21024
Kudos: 161
Joined: 22 Jan 2004
Location: Denmark

Re: TwOgre - An AntTweakBar Integration

Postby jacmoe » Sun Sep 16, 2012 11:33 pm

It uses Ogre::RENDER_QUEUE_OVERLAY, so you could probably work around this by disabling that for the viewport?

Anyway, here's the relevant source code:
https://bitbucket.org/jacmoe/twogregui/ ... anager.cpp
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC 8-10, Code::Blocks and KDevelop.
OgreAssimpConverter - command-line to convert models to Ogre format.
TwOgreGUI - wrapper for AntTweakBar GUI library.
I accept donations | Me on Google+
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 21024
Kudos: 161
Joined: 22 Jan 2004
Location: Denmark

Re: TwOgre - An AntTweakBar Integration

Postby AshMcConnell » Mon Sep 17, 2012 8:21 am

Hi Guys,

Thanks for the replies,

@syedhs The viewports all had setOverlaysEnabled(false) previously, so unfortunately that didn't work

@jacmoe I assume you mean the renderQueueStarted method? I haven't disabled queueGroupIds for a particular viewport before, I'll do some googling, but if you know offhand it would be handy :)

Thanks for your help
All the best,
Ash
User avatar
AshMcConnell
Orc
 
Posts: 450
Kudos: 6
Joined: 14 Dec 2007
Location: Northern Ireland

Re: TwOgre - An AntTweakBar Integration

Postby jacmoe » Mon Sep 17, 2012 3:40 pm

Haven't tried this, but perhaps in a rendertarget listener - preRenderTargetUpdate():
Code: Select all
      mSceneMgr->clearSpecialCaseRenderQueues();
      mSceneMgr->addSpecialCaseRenderQueue(RENDER_QUEUE_OVERLAY);
      mSceneMgr>setSpecialCaseRenderQueueMode(Ogre::SceneManager::SCRQM_EXCLUDE);

And then, in postRenderTargetUpdate():
Code: Select all
mSceneMgr->removeSpecialCaseRenderQueue(RENDER_QUEUE_OVERLAY);

Or something like that.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC 8-10, Code::Blocks and KDevelop.
OgreAssimpConverter - command-line to convert models to Ogre format.
TwOgreGUI - wrapper for AntTweakBar GUI library.
I accept donations | Me on Google+

For this message the author jacmoe has received kudos
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 21024
Kudos: 161
Joined: 22 Jan 2004
Location: Denmark

Re: TwOgre - An AntTweakBar Integration

Postby AshMcConnell » Tue Sep 18, 2012 8:52 pm

Hi Jacmoe,

Just managed to get some time to play with this tonight. Yep, this did the trick :) It is now a thing of beauty!

Image

Thanks for your help!
All the best,
Ash

For this message the author AshMcConnell has received kudos
User avatar
AshMcConnell
Orc
 
Posts: 450
Kudos: 6
Joined: 14 Dec 2007
Location: Northern Ireland

Re: TwOgre - An AntTweakBar Integration

Postby Slicky » Fri Aug 09, 2013 12:40 am

I updated this to v1.16 and tried to push the changes but I am getting an authorization failed message. I thought the repository was open.
Slicky
Bronze Sponsor
Bronze Sponsor
 
Posts: 514
Kudos: 1
Joined: 14 Apr 2003
Location: Los Angeles, CA

Previous

Return to Showcase

Who is online

Users browsing this forum: Google [Bot] and 6 guests