[SOLVED] RTSS and truetype font Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
glennr
Greenskin
Posts: 112
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 3

[SOLVED] RTSS and truetype font

Post by glennr » Wed Mar 06, 2019 4:17 am

Ogre Version: :1.11:
Operating System: :Windows/OSX:
Render System: :D3D11:

I'm wanting to use a truetype font with RTSS. I have RTSS enabled and have added shaders from the sample library for the FFP functions that my materials use.

I'm seeing this error in the log:

Code: Select all

RenderSystem does not support FixedFunction, but technique of 'Fonts/MyFont' has no Vertex Shader. Use the RTSS or write custom shaders.
I guess that's because I haven't added the required shader.

If that's correct then which shaders from the samples library do I need?

If not, then how do I use truetype fonts with RTSS?
Last edited by glennr on Fri Mar 08, 2019 2:31 am, edited 1 time in total.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 774
Joined: Sun Mar 30, 2014 2:51 pm
x 119
Contact:

Re: RTSS and truetype font

Post by paroj » Wed Mar 06, 2019 11:46 am

glennr wrote:
Wed Mar 06, 2019 4:17 am
I guess that's because I haven't added the required shader.
no, that would be a different error. Most likely you did not set-up the RTSS correctly. See:
https://ogrecave.github.io/ogre/api/latest/setup.html

hint: the SampleBrowser also uses TT fonts.
0 x

glennr
Greenskin
Posts: 112
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 3

Re: RTSS and truetype font

Post by glennr » Thu Mar 07, 2019 3:44 am

For the record, the part I was missing is:

Code: Select all

        // Create and register the material manager listener if it doesn't exist yet.
        if (!mMaterialMgrListener) {
            mMaterialMgrListener = new SGTechniqueResolverListener(mShaderGenerator);
            Ogre::MaterialManager::getSingleton().addListener(mMaterialMgrListener);
        }
0 x

Post Reply