MovableText

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
risanchez
Halfling
Posts: 44
Joined: Wed Feb 15, 2012 11:31 pm

MovableText

Post by risanchez »

Hi,

I am using MovableText class as given in wiki, but when I run it , it say that it can not find bluehighway-8

Can you give me hints where to look?

bluehighway-8.font is in C:\Ogre\Samples\Media\fonts

risanchez
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: MovableText

Post by Mind Calamity »

Another person had the same problem as you in this thread: http://ogre3d.org/forums/viewtopic.php?f=2&t=71198

To save you time:
Mind Calamity wrote:I've updated the wiki page with updated code and new resources. You should check it out.

Quick link: http://www.ogre3d.org/tikiwiki/tiki-ind ... ovableText
Also, pick forums more carefully next time. This belongs to the Help forum. ;)
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
risanchez
Halfling
Posts: 44
Joined: Wed Feb 15, 2012 11:31 pm

Re: MovableText

Post by risanchez »

Thanks,
I will try it.

risanchez
risanchez
Halfling
Posts: 44
Joined: Wed Feb 15, 2012 11:31 pm

Re: MovableText

Post by risanchez »

Hi,

Still I can not make it work, using your changes on the web page.
Looking at other peoples with the same problem it looks that we are not loading properly the resources
for the fonts within the class MovableText. The class itself does not load the resources.
My question is : How can I load specifically the resources for the font BlueHighway-8. I checked that BlueHighway-8.font is at
C:/Ogre/Samples/Media/fonts
Can you help me on this?

Best regards,

risanchez
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: MovableText

Post by Mind Calamity »

How would the class know where the resources are ? You need to add the fonts folder to your resources. (The process is different depending on how you load your resources). I opened a thread related to this problem: http://ogre3d.org/forums/viewtopic.php?f=3&t=71210

.font is not used anymore. It's been replaced by .fontdef, the archive I attached contains a .fontdef which should fix your problem. Also copy the new version of the code I posted on the page.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
risanchez
Halfling
Posts: 44
Joined: Wed Feb 15, 2012 11:31 pm

Re: MovableText

Post by risanchez »

Thanks again,

I modified the format of BlueHighway-8 as you said and now is working quite well.
One thing, I am using a screen resolution of 1680x1050 so charHeight in my case has to be over 30.0 to see a reasonable size text.
In the web page the program comes with charHeight=1.0

Best regards,

risanchez