[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: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

[SOLVED] RTSS and truetype font

Post by glennr »

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.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: RTSS and truetype font

Post by paroj »

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.
glennr
Greenskin
Posts: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

Re: RTSS and truetype font

Post by glennr »

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);
        }
Post Reply