Page 3 of 3

Re: TwOgre - An AntTweakBar Integration

Posted: Wed Feb 15, 2012 11:46 am
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)?

Re: TwOgre - An AntTweakBar Integration

Posted: Thu Mar 29, 2012 6:51 pm
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. :)

Re: TwOgre - An AntTweakBar Integration

Posted: Sat Sep 01, 2012 8:28 am
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

Re: TwOgre - An AntTweakBar Integration

Posted: Wed Sep 12, 2012 10:59 pm
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.

Re: TwOgre - An AntTweakBar Integration

Posted: Sun Sep 16, 2012 2:05 pm
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

Re: TwOgre - An AntTweakBar Integration

Posted: Sun Sep 16, 2012 5:24 pm
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.

Re: TwOgre - An AntTweakBar Integration

Posted: Sun Sep 16, 2012 11:25 pm
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.

Re: TwOgre - An AntTweakBar Integration

Posted: Sun Sep 16, 2012 11:33 pm
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

Re: TwOgre - An AntTweakBar Integration

Posted: Mon Sep 17, 2012 8:21 am
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

Re: TwOgre - An AntTweakBar Integration

Posted: Mon Sep 17, 2012 3:40 pm
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.

Re: TwOgre - An AntTweakBar Integration

Posted: Tue Sep 18, 2012 8:52 pm
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

Re: TwOgre - An AntTweakBar Integration

Posted: Fri Aug 09, 2013 12:40 am
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.