Page 1 of 1

Text no display with SdkTrays

Posted: Thu Jul 29, 2010 10:59 am
by Bpopey
I have a little trouble. I tried the example archive SdkTraySample.zip
it works very well with Ogre v1.7.0, but when I compile it and execute it
with the version of Ogre v1.7.1, I have not the text display.

Image

What changes between these two versions can get this bug?
Or whatadaptation code does it make?

Thank you for your help ;)

Re: Text no display with SdkTrays

Posted: Thu Jul 29, 2010 11:35 am
by dyndnsboy
I had the same problem when putting on left position.

When i changed to right, it worked.

Also when i use another police, image based, not ttf it works at any position.

Re: Text no display with SdkTrays

Posted: Thu Jul 29, 2010 12:00 pm
by Bpopey
dyndnsboy wrote:When i changed to right, it worked.
it's the same thing for me.
dyndnsboy wrote:Also when i use another police, image based, not ttf it works at any position.
is an interesting information :)

but this difference between the latest version of Ogre is strange .. :?

Re: Text no display with SdkTrays

Posted: Tue Aug 31, 2010 8:58 pm
by Bpopey
up

some users have the same worries?

I still can not put my finger on the detail that does not work ...

Is there than we have encountered this problem with version 1.7.1 and SDKTray Ogre ?

:mrgreen:

Re: Text no display with SdkTrays

Posted: Fri Sep 03, 2010 12:34 pm
by ta_gopinath
hello

before creating the buttons, add this line

Ogre::FontManager::getSingleton().getByName("SdkTrays/Caption")->load();

issue is related with the fonts.

Thanks & Regards,
A. Gopinath.

Re: Text no display with SdkTrays

Posted: Fri Sep 03, 2010 3:54 pm
by Bpopey
it was so simple. :shock:

Thank you very much, really :D
you saved my life (almost)

Re: Text no display with SdkTrays

Posted: Sat Sep 04, 2010 5:29 am
by omniter
This is a bug in Ogre 1.7, not SdkTrays, and has been reported many times. Something about OverlayElements not updating their widths at the right time (but only for pixel metric). So be wary when using non-SdkTrays interfaces as well.

Re: Text no display with SdkTrays

Posted: Sun Sep 05, 2010 4:41 pm
by orc lord
I solved this problem by calling mTrayMgr->adjustTrays(); once after rendering had started. for example in frameRenderingQueued;

Re: Text no display with SdkTrays

Posted: Sun Sep 05, 2010 5:04 pm
by omniter
That is a good temporary solution until the bug gets fixed, since adjustTrays sets the dimensions and positions of all the OverlayElements. Any operation that will cause the OverlayElement's geom positions to be refreshed will fix this problem.

Re: Text no display with SdkTrays

Posted: Tue Apr 19, 2011 11:56 am
by dave2041
As a small update, should you have a slider or Select Menu, and the value select isn't showing use this line:

Code: Select all

Ogre::FontManager::getSingleton().getByName("SdkTrays/Value")->load();
In a similar manor to the previous fix for the button captions.

Re: Text no display with SdkTrays

Posted: Fri Jul 18, 2014 1:07 am
by conx
I'm digging it out just to notice that i have the same issue with Ogre 1.8.1 !
Thanks,Rafal