[SOLVED] RTShadersSystem doesn't start up after upgrade

Problems building or running the engine, queries about how to use features etc.
User avatar
paul424
Gnome
Posts: 377
Joined: Thu May 24, 2012 7:16 pm
x 18

[SOLVED] RTShadersSystem doesn't start up after upgrade

Post by paul424 »

Ogre Version: : 1 13 6 5:
Operating System: :Linux Tumbleweed:
Render System: :OpenGL3+
I try to upgrade to the relatively new Ogre3d, which would have the CEGUI support -- that is 1 13 6 5 version.
I keep getting errors when loading materials which depend on RTSS like this :

Parsing script GoblinBed.material
Error: ScriptCompiler - reference to a non existing object in GoblinBed.material(2): RTShaderSystem.material
Error: ScriptCompiler - base object not found in GoblinBed.material(3): RTSS/NormalMapping_MultiPass

Also the CEGUI returns an error :

"An exception has occurred: CEGUI::RendererException in function 'void CEGUI::OgreRenderer::constructor_impl(Ogre::RenderTarget&)' (/home/tom/Downloads/cegui-0-8/cegui/src/RendererModules/Ogre/Renderer.cpp:802) : RT Shader System not available but trying to render using OpenGL 3.X+ Core.When GLSL shaders are necessary, the RT Shader System component of Ogre is required for rendering CEGUI."

I believe the RTShader are correctly set up in resources.cfg :

Code: Select all

[OgreInternal]
FileSystem=/usr/share/OGRE/Media/RTShaderLib/../Main
FileSystem=/usr/share/OGRE/Media/RTShaderLib/GLSL
FileSystem=/usr/share/OGRE/Media/RTShaderLib/../ShadowVolume


[Graphics]

FileSystem=/usr/share/OGRE/Media/RTShaderLib/materials
FileSystem=materials/scripts
FileSystem=materials/scripts/Creatures
FileSystem=materials/textures
FileSystem=models
FileSystem=particles
FileSystem=shaders

[GUI]
FileSystem=gui
FileSystem=gui/fonts
FileSystem=gui/schemas

[Music]
FileSystem=music

[Sound]
FileSystem=sounds
Last edited by paul424 on Thu Jul 18, 2024 1:42 pm, edited 1 time in total.
User avatar
paul424
Gnome
Posts: 377
Joined: Thu May 24, 2012 7:16 pm
x 18

Re: RTShadersSystem doesn't start up after upgrade

Post by paul424 »

@paroj : Uhh sorry I didn't see your work : https://github.com/OpenDungeons/OpenDun ... :snapcraft . Should I cherrypick all those commits ?

User avatar
paul424
Gnome
Posts: 377
Joined: Thu May 24, 2012 7:16 pm
x 18

Re: RTShadersSystem doesn't start up after upgrade

Post by paul424 »

I just cherrypicked the following commits ontop of my branch :

Code: Select all

uthor: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Feb 9 21:17:39 2023 +0100

render: create scene earlier, so RTSS is initialised for CEGUI

commit 01c19bb4bf34e1c91eb3dc073cc13fa69f92b4f8
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Jan 5 01:32:11 2023 +0100

fix material error due to rtshader changes

commit 7435dc3b8385b9fcc4bec6c13728d5501b6cdcba
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Jan 5 01:19:25 2023 +0100

unconditionally use upstream RTSS lib

commit 324a3686e8790c76be2dd53d43c68079be9ffec9
Author: Tomasz Luchowski <paul424@o2.pl>
Date:   Thu Jul 18 02:14:41 2024 +0200

Commented out the list lights command

commit 32062dbc82a1410f78b4f07d9f4e9ef0169eb7ac
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Jan 5 01:18:57 2023 +0100

adapt to Ogre 13 API changes

commit 89cc359f62d26e6d1b0998e6b2287a430b6f1fb6
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Jan 5 00:21:40 2023 +0100

fix crash on rendersystem change

commit 2a4357e22601eff3a46e597ca703b5ac2974cf52
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Jan 5 00:21:29 2023 +0100

fix crash on shutdown

commit 7f195079fd6513bacfab0b5c4a60b28c2c2873da
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Thu Jan 5 00:00:53 2023 +0100

add missing std::stream includes

commit d0ef41f555253b46e0daadd41c76529a9293e28d
Author: Pavel Rojtberg <rojtberg@gmail.com>
Date:   Sun Mar 8 19:52:20 2020 +0100

allow using GL3Plus

still the main problem of RTSS being to late persist I get :

An exception has occurred: CEGUI::RendererException in function 'void CEGUI::OgreRenderer::constructor_impl(Ogre::RenderTarget&)' (/home/tom/Downloads/cegui-0-8/cegui/src/RendererModules/Ogre/Renderer.cpp:802) : RT Shader System not available but trying to render using OpenGL 3.X+ Core.When GLSL shaders are necessary, the RT Shader System component of Ogre is required for rendering CEGUI.

User avatar
paul424
Gnome
Posts: 377
Joined: Thu May 24, 2012 7:16 pm
x 18

Re: RTShadersSystem doesn't start up after upgrade

Post by paul424 »

After close examination , the CEGUI is really created after RTSS. Seems the RTSS here doesn't start at all....

User avatar
paul424
Gnome
Posts: 377
Joined: Thu May 24, 2012 7:16 pm
x 18

Re: RTShadersSystem doesn't start up after upgrade

Post by paul424 »

Uhh I downloaded the paroj version of CEGUI and now everything bells and whistles :), I have a working 1 13 6 5 version of OGRE !!!!!!