Operating System: Windows 10
Render System: DirectX11
I'm migrating an Ogre 1.9 project to 1.12. Right now the game doesn't start because it gives an RTSS error. I think I've added the right things to make RTSS work, but apparently I haven't. What step am I missing here?
This is the error I get:
This is how I initialise RTSS (plus some maybe relevant code around it):Ogre::InvalidStateException::InvalidStateException: RenderSystem does not support FixedFunction, but technique of 'LoadingScreen' has no Vertex Shader. Use the RTSS or write custom shaders, in SceneManager::_setPass at [...]OgreSceneManager.cpp (line 885)
Code: Select all
#include "OgreRTShaderSystem.h"
[...]
sceneManager = root->createSceneManager(Ogre::ST_GENERIC);
Ogre::RTShader::ShaderGenerator::initialize();
Ogre::RTShader::ShaderGenerator* shaderGenerator = Ogre::RTShader::ShaderGenerator::getSingletonPtr();
shaderGenerator->addSceneManager(sceneManager);
Ogre::OverlaySystem* overlaySystem = new Ogre::OverlaySystem();
sceneManager->addRenderQueueListener(overlaySystem);
The material is very simple:
Code: Select all
material LoadingScreen
{
technique
{
pass
{
texture_unit
{
texture LoadingScreen.png
filtering linear linear none
}
lighting off
depth_check off
scene_blend alpha_blend
}
}
}
I'm using this specific material in an Overlay. Is the problem maybe that the OverlayManager doesn't use the SceneManager and isn't registered at RTSS? Or is that not relevant or not the case?
How can I make this material work with RTSS?