RenderSystem Does Not Support FixedFunction Exception

Problems building or running the engine, queries about how to use features etc.
CallMeTerry
Gnoblar
Posts: 2
Joined: Fri Jun 20, 2025 4:09 am

RenderSystem Does Not Support FixedFunction Exception

Post by CallMeTerry »

Ogre Version: :v14.3.4:
Operating System: :Windows 10:
Render System: :DirectX11:

I was following the tutorials, I got to "Lights, Cameras, Shadows" around the part where we add this line " spotLight->setSpotlightRange(Degree(35), Degree(50));" but I'm getting some ogre exception about FixedFunction not being supported even tho I already initialized the RTShader gen like the tutorials say in like the very first one.

Code: Select all

OgreBites::ApplicationContext ctx("Call Of Zed");
ctx.initApp();

Ogre::Root* root = ctx.getRoot();
Ogre::SceneManager* scnMgr = root->createSceneManager();

Ogre::RTShader::ShaderGenerator* shadergen = Ogre::RTShader::ShaderGenerator::getSingletonPtr();
shadergen->addSceneManager(scnMgr);

Code: Select all

OGRE EXCEPTION: Ogre::InvalidStateException::InvalidStateException: RenderSystem does not support FixedFunction, but technique of 'Examples/Ninja' has no Vertex Shader. Use the RTSS or write custom shaders. in SceneManager::_setPass at C:\Users\CMT\Desktop\Projects\CallOfZed\Vendor\ogre-14.3.4\OgreMain\src\OgreSceneManager.cpp (line 680)
slapin
Bronze Sponsor
Bronze Sponsor
Posts: 146
Joined: Fri May 23, 2025 5:04 pm
x 5

Re: RenderSystem Does Not Support FixedFunction Exception

Post by slapin »

Make sure you initialize RTSS before any material is created or loaded, or any mesh is created or loaded.

slapin
Bronze Sponsor
Bronze Sponsor
Posts: 146
Joined: Fri May 23, 2025 5:04 pm
x 5

Re: RenderSystem Does Not Support FixedFunction Exception

Post by slapin »

And no lights too, of course.

CallMeTerry
Gnoblar
Posts: 2
Joined: Fri Jun 20, 2025 4:09 am

Re: RenderSystem Does Not Support FixedFunction Exception

Post by CallMeTerry »

I do at the very start of my main func I just ended up switching to DirectX9 for now since I'm just trying learn how the API works and ill try messing with the RTSS system later when I actually know what I'm doing lol