I decided to try out Urho3d engine, so the first thing I did was downloading git repository, compiling it and then checking out provided samples. Then I saw that 19_VehicleDemo doesn’t have any textures and looks like that:
What am I doing wrong? I use Lubuntu.
~/Urho3D/build/bin $ ./19_VehicleDemo
[Fri Oct 27 15:11:05 2017] INFO: Opened log file /home/mariusz/.local/share/urho3d/logs/VehicleDemo.log
[Fri Oct 27 15:11:05 2017] INFO: Created 1 worker thread
[Fri Oct 27 15:11:05 2017] INFO: Added resource path /home/mariusz/Pobrane/Urho3D/build/bin/Data/
[Fri Oct 27 15:11:05 2017] INFO: Added resource path /home/mariusz/Pobrane/Urho3D/build/bin/CoreData/
[Fri Oct 27 15:11:05 2017] INFO: Added resource path /home/mariusz/Pobrane/Urho3D/build/bin/Autoload/LargeData/
[Fri Oct 27 15:11:05 2017] INFO: Set screen mode 1024x768 windowed monitor 0
[Fri Oct 27 15:11:05 2017] INFO: Initialized input
[Fri Oct 27 15:11:05 2017] INFO: Initialized user interface
[Fri Oct 27 15:11:05 2017] INFO: Initialized renderer
[Fri Oct 27 15:11:05 2017] INFO: Initialized engine
Used resources:
Textures/Ramp.png
Textures/Spot.png
Textures/FishBoneLogo.png
Textures/UI.png
Textures/TerrainWeights.dds
Textures/TerrainDetail1.dds
Textures/TerrainDetail2.dds
Textures/TerrainDetail3.dds
Textures/Mushroom.dds
Textures/StoneDiffuse.dds
Textures/StoneNormal.dds
Techniques/NoTexture.xml
Techniques/TerrainBlend.xml
Techniques/Diff.xml
Techniques/DiffNormal.xml
RenderPaths/Forward.xml
UI/DefaultStyle.xml
Textures/UrhoIcon.png
Textures/HeightMap.png
Fonts/Anonymous Pro.ttf
Materials/Terrain.xml
Materials/Mushroom.xml
Materials/Stone.xml
Models/Mushroom.mdl
Models/Box.mdl
Models/Cylinder.mdl
Shaders/GLSL/Shadow.glsl
Shaders/GLSL/LitSolid.glsl
Shaders/GLSL/TerrainBlend.glsl
Shaders/GLSL/Basic.glsl
$ glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.7
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 17.0.7
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.0.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
I’m afraid that if these issues are caused by GL drivers, it’s unlikely to have them solved inside Urho.
However, I suggest you to check the program in any GL debugger. Urho may have some non-standard constructions that get broken.
I used GL debugger, as advised above (this one) and I found out that engine, among other things, requires GL_EXT_texture_compression_s3tc extension, which I didn’t have. I installed using sudo apt-get install libtxc-dxtn-s2tc0 as described here and managed to run examples correctly.
Perhaps some sort of a warning when an OpenGL extension is not found could be implemented?