Using overlays to show text / ObjectTextDisplay

Problems building or running the engine, queries about how to use features etc.
Post Reply
lgilson
Gnoblar
Posts: 2
Joined: Wed Aug 08, 2018 3:15 pm

Using overlays to show text / ObjectTextDisplay

Post by lgilson »

Ogre Version: master from git-hub, downloaded today
Operating System: Windows 10

Hi,

I'm trying to do simple text overlays based on this code: http://wiki.ogre3d.org/ObjectTextDisplay

Since the master came without any fonts (why?), and the zip-downloads on the wiki page are all empty (why?), I created one using the fontdef:

Code: Select all

font myFont
{
    type truetype
    source calibri.ttf
	size 16
	resolution 72
	
}
and put it together with calibri.ttf into the resource tree. I put the call to text->update() into framestart(). The result is invisible. update() seems to calculate the correct position on the screen, but nothing shows up. Other elements in the scene do show up.

It is the first element added using the Overlay system. Is there anything omitted on the wiki page i need to load, generate or enable?

Thanks,
Post Reply