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!
ladzin
Gnoblar
Posts: 7
Joined: Sun May 11, 2008 5:14 pm

Re: TwOgre - An AntTweakBar Integration

Post by ladzin »

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)?
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by jacmoe »

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.
OgreAddons - the Ogre code suppository.
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by AshMcConnell »

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
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by jacmoe »

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.
OgreAddons - the Ogre code suppository.
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by AshMcConnell »

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
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Re: TwOgre - An AntTweakBar Integration

Post by syedhs »

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
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by jacmoe »

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.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by jacmoe »

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.
OgreAddons - the Ogre code suppository.
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by AshMcConnell »

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
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by jacmoe »

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.
OgreAddons - the Ogre code suppository.
User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 16
Contact:

Re: TwOgre - An AntTweakBar Integration

Post by AshMcConnell »

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
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 25

Re: TwOgre - An AntTweakBar Integration

Post by Slicky »

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.
Post Reply