Error in RTShaderSystem

Bug #993773 reported by eduardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ogre (Ubuntu)
New
Undecided
Unassigned

Bug Description

INFORMATION:
$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

$ apt-cache policy libogre-dev
libogre-dev:
  Instalados: 1.7.4-3
  Candidato: 1.7.4-3
  Tabla de versión:
 *** 1.7.4-3 0
        500 http://ch.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

PROBLEM:
I tried to tun the BasicTutorial 3 from the OGRE website: http://www.ogre3d.org/tikiwiki/BasicTutorial3Source

I can compile without problems, but when I run the program I get the errors described at the bottom and I can see a landscape but wihtout textures . The sky is ok, but the landscape is all grey and I know that this shouldn't be like that. The same happens if I try to run the Terrain demo from the SampleBrowser (see attached screenshot).

...
Parsing script RTShaderSystem.material
Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
...

*** Initializing OIS ***
High-level program OgreTerrain/205920841/sm2/vp/hlod/hlod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/vp/hlod/hlod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/fp/hlod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/fp/hlod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/vp/llod/llod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/vp/llod/llod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/fp/llod encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/fp/llod in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
WARNING: material OgreTerrain/205920841 has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program OgreTerrain/205920841/sm2/vp/hlod/hlod cannot be used - compile error.
Pass 0: Vertex program OgreTerrain/205920841/sm2/vp/llod/llod cannot be used - compile error.

High-level program OgreTerrain/205920841/sm2/vp/comp/comp encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/vp/comp/comp in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
High-level program OgreTerrain/205920841/sm2/fp/comp encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Failed to preprocess shader OgreTerrain/205920841/sm2/fp/comp in loadFromSource at /build/buildd/ogre-1.7.4/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp (line 155)
WARNING: material OgreTerrain/205920841/comp has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program OgreTerrain/205920841/sm2/vp/comp/comp cannot be used - compile error.

...

Revision history for this message
eduardo (eddy-paredes) wrote :
Revision history for this message
eduardo (eddy-paredes) wrote :

I believe hat this has something to do with the CG libraries used by the given exampes. The attached image may be a hint.

Revision history for this message
Manuel A. Fernandez Montecelo (mafm) wrote :

Hi,

CG is disabled in the OGRE package of Debian (and consequently in Ubuntu, since they take my package directly) to avoid the complications and packaging burdens of nvidia CG libraries being non-free.

I also seems that the Debian package nvidia-cg-toolkit is badly outdated and nobody takes care of it, so even if desired, activating it would take some effort and would need to resurrect the nvidia-cg-toolkit package to be useful.

So, in summary, I have no intention to enable support for it in the Debian package. Maybe somebody will be interested in modifying the package to include CG support it in Ubuntu, I don't know.

It's easy to take the deb-src package and recompile it in your system, if you're interested in CG support. If you have the CG libraries installed and recompile, probably they're even auto-detected and OGRE builds support for it automatically.

Cheers.

Revision history for this message
eduardo (eddy-paredes) wrote :

my opinion: if something doesn't work it shouldn't be in the repository of a stable LTS distro...

Revision history for this message
Manuel A. Fernandez Montecelo (mafm) wrote :

Traditionally in Debian systems, not all options are enabled by default if they happen to contain or require non-free pieces of code; or some other problems. For example, Adobe Flash or some drivers are not supported or are kept in non-free. I would hardly call Firefox faulty and that shouldn't be shipped in a release for not being able to show some pages with flash content.

I don't know what's Ubuntu policy on that, but anyway I'm not involved in Ubuntu -- they just happen to import my package directly. If they ship a version of a software without 100% coverage that everything works perfectly, it's probably due to lack of manpower. Help is welcome. Every software company or group release software with problems sometimes, even if they only ship core-OS software and not the gazillion of software that Debian, Ubuntu and other distros support; and most of them are mostly (or completely) run by volunteers.

Other than that, OGRE is quite functional for many purposes, and especially for games that we plan to use inside Debian. If you want/need a especial version, it's very easy to recompile and get things working. Just install libCg, download the source deb, and re-run debian/rules.

Cheers.

Revision history for this message
eduardo (eddy-paredes) wrote :

ok, thank you

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.