Text no display with SdkTrays
-
- Gnoblar
- Posts: 10
- Joined: Thu Jul 29, 2010 10:50 am
Text no display with SdkTrays
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.
What changes between these two versions can get this bug?
Or whatadaptation code does it make?
Thank you for your help
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.
What changes between these two versions can get this bug?
Or whatadaptation code does it make?
Thank you for your help
-
- Gnoblar
- Posts: 4
- Joined: Wed Jul 21, 2010 3:30 pm
Re: Text no display with SdkTrays
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.
When i changed to right, it worked.
Also when i use another police, image based, not ttf it works at any position.
-
- Gnoblar
- Posts: 10
- Joined: Thu Jul 29, 2010 10:50 am
Re: Text no display with SdkTrays
it's the same thing for me.dyndnsboy wrote:When i changed to right, it worked.
is an interesting informationdyndnsboy wrote:Also when i use another police, image based, not ttf it works at any position.
but this difference between the latest version of Ogre is strange ..
-
- Gnoblar
- Posts: 10
- Joined: Thu Jul 29, 2010 10:50 am
Re: Text no display with SdkTrays
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 ?
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 ?
-
- Gnoblar
- Posts: 15
- Joined: Wed Jul 07, 2010 6:20 am
- x 2
Re: Text no display with SdkTrays
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.
before creating the buttons, add this line
Ogre::FontManager::getSingleton().getByName("SdkTrays/Caption")->load();
issue is related with the fonts.
Thanks & Regards,
A. Gopinath.
-
- Gnoblar
- Posts: 10
- Joined: Thu Jul 29, 2010 10:50 am
Re: Text no display with SdkTrays
it was so simple.
Thank you very much, really
you saved my life (almost)
Thank you very much, really
you saved my life (almost)
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: Text no display with SdkTrays
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.
-
- Gnoblar
- Posts: 2
- Joined: Sun Sep 05, 2010 4:20 pm
- Location: Germany
Re: Text no display with SdkTrays
I solved this problem by calling mTrayMgr->adjustTrays(); once after rendering had started. for example in frameRenderingQueued;
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: Text no display with SdkTrays
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.
-
- Halfling
- Posts: 71
- Joined: Fri Apr 24, 2009 12:55 pm
Re: Text no display with SdkTrays
As a small update, should you have a slider or Select Menu, and the value select isn't showing use this line:
In a similar manor to the previous fix for the button captions.
Code: Select all
Ogre::FontManager::getSingleton().getByName("SdkTrays/Value")->load();
-
- Kobold
- Posts: 32
- Joined: Thu May 10, 2012 10:12 am
Re: Text no display with SdkTrays
I'm digging it out just to notice that i have the same issue with Ogre 1.8.1 !
Thanks,Rafal
Thanks,Rafal