supertuxkart / stk-code

The code base of supertuxkart
Other
4.51k stars 1.06k forks source link

Karts are invisible when shadows are on #3732

Closed cleb closed 6 months ago

cleb commented 5 years ago

Description

When shadows are enabled, the karts are not visible during a race (a screenshot is attached) - this is in the windows version

The karts are visible on the kart selection screen

When the shadows are set to medium, the karts are briefly partially displayed before start, then disappear. On high shadows, they are missing from the beginning

Note (possibly relevant): On the same computer in linux with the noveau driver, the game crashes with shadows on (and runs fine, albeit slow, with shadows off).

supertuxkart-bug

Steps to reproduce

Launch the game, turn on shadows (other graphics options are irrelevant) start a race

Configuration

STK release version: 0.10-beta1

STK Source (PPA, distribution package, official binary, etc.): Git

System: Windows 10 pro (64bit)

Graphics card: Nvidia GeForce 940MX

CPU: Intel Core I7-7500

Additional information

stdout.log:

[info   ] [FileManager]: Data files will be fetched from: 'D:/source/stk-code/data/'
[info   ] [FileManager]: Data files will be fetched from: 'D:/source/stk-code/data/../../stk-assets/'
[info   ] [FileManager]: User directory is 'C:\Users\jjuda\AppData\Roaming/supertuxkart/0.10-beta/'.
[info   ] [FileManager]: Addons files will be stored in 'C:\Users\jjuda\AppData\Roaming/supertuxkart/0.10-beta/../addons/'.
[info   ] [FileManager]: Screenshots will be stored in 'C:\Users\jjuda\AppData\Roaming/supertuxkart/0.10-beta/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in 'C:\Users\jjuda\AppData\Roaming/supertuxkart/0.10-beta/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from 'D:/source/stk-code/data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from 'D:/source/stk-code/data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from 'D:/source/stk-code/data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from 'D:/source/stk-code/data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from 'D:/source/stk-code/data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from 'D:/source/stk-code/data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from 'D:/source/stk-code/data/../../stk-assets/library/'.
[info   ] [FileManager]: Asset 7 will be loaded from 'D:/source/stk-code/data/../../stk-assets/models/'.
[info   ] [FileManager]: Asset 8 will be loaded from 'D:/source/stk-code/data/../../stk-assets/music/'.
[info   ] [FileManager]: Asset 9 will be loaded from 'D:/source/stk-code/data/replay/'.
[info   ] [FileManager]: Asset 10 will be loaded from 'D:/source/stk-code/data/../../stk-assets/tracks/'.
[info   ] [FileManager]: Asset 11 will be loaded from 'D:/source/stk-code/data/../../stk-assets/sfx/'.
[info   ] [FileManager]: Asset 12 will be loaded from 'D:/source/stk-code/data/shaders/'.
[info   ] [FileManager]: Asset 13 will be loaded from 'D:/source/stk-code/data/skins/'.
[info   ] [FileManager]: Asset 14 will be loaded from 'D:/source/stk-code/data/../../stk-assets/textures/'.
[info   ] [FileManager]: Asset 15 will be loaded from 'D:/source/stk-code/data/ttf/'.
[info   ] [FileManager]: Asset 16 will be loaded from 'D:/source/stk-code/data/po/'.
[verbose  ] translation: GetLocaleInfo langname returns 'cs'.
[verbose  ] translation: GetLocaleInfo tryname returns 'CZ'.
[verbose  ] translation: Env var LANGUAGE = 'cs_CZ'.
[verbose  ] translation: Language 'Czech (Czech Republic)'.
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 23 unknown Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3176 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3314 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3536 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3551 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3688 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 4178 msgstr[N] seen, but no Plural-Forms given: ""
[info   ] tinygettext: Adding language fallback cs

[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 23 unknown Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3176 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3314 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3536 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3551 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 3688 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] tinygettext: D:/source/stk-code/data/po//cs.po line 4178 msgstr[N] seen, but no Plural-Forms given: ""
[warn   ] irr_driver: !!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!

[warn   ] irr_driver: !!!!! This can have a significant performance impact         !!!!!

[info   ] IrrDriver: OpenGL version: 4.3
[info   ] IrrDriver: OpenGL vendor: Intel
[info   ] IrrDriver: OpenGL renderer: Intel(R) HD Graphics 620
[info   ] IrrDriver: OpenGL version string: 4.3.0 - Build 23.20.16.4973
[info   ] GLDriver: ARB Buffer Storage Present
[info   ] GLDriver: ARB Compute Shader Present
[info   ] GLDriver: ARB Arrays of Arrays Present
[info   ] GLDriver: ARB Texture Storage Present
[info   ] GLDriver: ARB Texture View Present
[info   ] GLDriver: ARB Image Load Store Present
[info   ] GLDriver: ARB Shader Atomic Counters Present
[info   ] GLDriver: ARB Shader Storage Buffer Object Present
[info   ] GLDriver: EXT Texture Compression S3TC Present
[info   ] GLDriver: ARB Uniform Buffer Object Present
[info   ] GLDriver: ARB Explicit Attrib Location Present
[info   ] GLDriver: EXT Texture Filter Anisotropic Present
[info   ] GLDriver: Geometry Shaders Present
[info   ] GLDriver: ARB Texture Buffer Object Present
[info   ] GLDriver: ARB Texture Swizzle Present
[info   ] GLDriver: ARB Pixel Buffer Object Present
[info   ] GLDriver: ARB Sampler Objects Present
[info   ] GLDriver: ARB Vertex Type 2_10_10_10_rev Present
[info   ] GLDriver: ARB Instanced Arrays Present
[info   ] SharedGPUObjects: Hardware Skinning enabled, method: TBO, max bones: 1024
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_pass.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_solid.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/white.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_skinning.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_skinning_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_normal_map.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_shadow_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_decal.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_grass_pass.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_grass.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_grass_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_unlit.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_transparent.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_ghost.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_dynamic_night_bloom.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_tilling_mitigation.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_vertical_mapping.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_road_blending.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_displace.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/colorize.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_normal_visualizer.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_normal_visualizer.geom
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sp_normal_visualizer.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/screenquad.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/motion_blur.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/lightning.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/primitive2dlist.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/transparent.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/texturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/uniformcolortexturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/texturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/coloredquad.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/coloredquad.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/colortexturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/colortexturedquad.frag
[info   ] irr_driver: GLSL supported.
[info   ] GrandPrixManager: Loading Grand Prix files from D:/source/stk-code/data/grandprix/
[info   ] GrandPrixManager: Loading Grand Prix files from C:\Users\jjuda\AppData\Roaming/supertuxkart/0.10-beta/grandprix/
[warn   ] Material: Cannot determine texture full path: dark-wall-wood.png
[warn   ] Material: Cannot determine texture full path: dark-wall-wood_nm.jpg
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/simple_particle.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/simple_particle.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/alphatest_particle.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/alphatest_particle.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/degraded_ibl.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sunlight.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/pointlight.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/pointlight.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/linearizedepth.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/ssao.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/bilateralH.comp
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/bilateralV.comp
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/combine_diffuse_color.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/glow.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/tonemap.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/mlaa_color1.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/mlaa_blend2.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/mlaa_neigh3.frag
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] AbstractTopLevelContainer::addWidgetsRecursively: Widget target-type-spinner of type 1 has no dimensions
[warn   ] AbstractTopLevelContainer::addWidgetsRecursively: Widget target-type-text of type 5 has no dimensions
[verbose  ] RaceManager: Nb of karts=4, ghost karts:0 ai:3 players:1

[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/importance_sampling_specular.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/IBL.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sunlightshadow.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/pointlightscatter.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/gaussian6v.comp
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/gaussian6h.comp
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sky.vert
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/sky.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/passthrough.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/dof.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/godfade.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/gaussian3v.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/gaussian3h.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/godray.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/bloom.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/gaussian6h.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/bloomblend.frag
[info   ] ShaderFilesManager: Compiling shader: D:/source/stk-code/data/shaders/lensblend.frag
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.
[info   ] Singleton: Destroyed singleton.

possibly related debug output: [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid [warn ] SPMeshBuffer: kartDirt shader is missing, fallback to solid

qwertychouskie commented 5 years ago

Hmm, it seems STK is running on the Intel iGPU, not the Nvidia GPU. Can you try these two things:

According to that Intel page the iGPU should support OpenGL 4.4 but STK only shows OpenGL 4.3.

Mrxx99 commented 5 years ago

Seems like you have the same issue I had. Note in the log it says it's using Intel HD graphics instead of your NVIDIA card. I changed that the NVIDIA card was used and every thing worked fine (and the performance was like 10 times better).

To change this go to your NVIDIA control panel and under 3D settings, change the global setting to use the NVIDIA card as default

cleb commented 5 years ago

Ah, of course it was usiíng the intel gpu, thanks. It runs fine with the nvidia gpu Should I update the bug report to reflect this?

As for the driver update, I already have a recent driver, the latest recommended by my laptop manufacturer, so I will not risk an update (sorry about that). However, the driver claims to support opengl 4.5 and shader 5.1

qwertychouskie commented 5 years ago

@cleb The drivers "recommended" by laptop manufacturers are almost always very old drivers in my experience, usually you are better off with the latest drivers from the GPU manufacturer (in this case Intel). Obviously I won't force you to do anything but it would be nice to know if newer drivers fix the issue or not.

@Benau Have any thoughts on this bug since you did the changes to the renderer in this release?

cleb commented 5 years ago

@qwertychouskie The linked driver is refusing to install, claiming it is not compatible with the computer. I have already had the GPU of this laptop break down due to driver problems before, so I won't risk trying to convince it otherwise :)

The driver I'm using is 23.20.16.4973, which claims to be from May 2018, so it is not by any means an ancient driver.

What I can add is that the bug is not present in the 0.9.3 binary release for windows

I do have the game compiled from source and I will be happy to supply any debug information that may help figure it out (maybe I'll start looking into it myself once I figure out where to start)

qwertychouskie commented 5 years ago

@Benau would be the best person to weigh in here, since he did the graphics engine improvements. I'm not an OpenGL expert :)

deveee commented 5 years ago

If intel complains about incompatible drivers, then first you need uninstall current driver, and then install new one.

As a workaround, you can probably disable kart animations. But still using nvidia rather than intel GPU should be better for you.

Alayan-stk-2 commented 5 years ago

The only reason to keep this issue open is to update the graphics incompatibility list. Could this be done ?

Benau commented 5 years ago

hmm if @Mrxx99 can reproduce the bug maybe you can try

  <card vendor="Intel" disable="TextureBufferObject"/>

in your windows with intel gpu and see if it works better?

Alayan-stk-2 commented 6 months ago

Unlikely to still be relevant.